We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13420b commit 34b215fCopy full SHA for 34b215f
SerialPrograms/CMakeLists.txt
@@ -462,7 +462,11 @@ else() # macOS and Linux
462
endif()
463
464
if (APPLE)
465
- target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wshorten-64-to-32)
+ target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror)
466
+ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
467
+ target_compile_options(SerialProgramsLib PRIVATE -Wshorten-64-to-32)
468
+ endif()
469
+
470
# on macOS, need this framework to query OS API to control display sleep and system sleep behavior
471
target_link_libraries(SerialProgramsLib PRIVATE "-framework IOKit -framework CoreFoundation")
472
else() # Linux
0 commit comments