added variable arch for compiling on other machines

development
Michael Ochmann 2 years ago
parent d5b121e4e3
commit a1a3ada1f9
  1. 2
      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)
Loading…
Cancel
Save