From a1a3ada1f9785b937d700dde07566ddd48b7b849 Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Wed, 22 Feb 2023 10:41:12 +0100 Subject: [PATCH] added variable arch for compiling on other machines --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 047909d..f7561c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,6 @@ project( file(GLOB_RECURSE sources main.cpp src/*.hpp src/*.cpp lib/*.hpp lib/*.cpp) add_executable(qr ${sources}) -target_compile_options(qr PUBLIC -Wall -std=c++20 -arch arm64) +target_compile_options(qr PUBLIC -Wall -std=c++20 -arch ${CMAKE_SYSTEM_PROCESSOR}) target_include_directories(qr PRIVATE src lib) install(TARGETS qr DESTINATION bin) \ No newline at end of file