diff --git a/SerialPrograms/CMakeLists.txt b/SerialPrograms/CMakeLists.txt index 43b59c88b9..84d64c2009 100644 --- a/SerialPrograms/CMakeLists.txt +++ b/SerialPrograms/CMakeLists.txt @@ -462,7 +462,12 @@ else() # macOS and Linux endif() if (APPLE) - target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wshorten-64-to-32) + if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") + target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wshorten-64-to-32) + else() + target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter) + endif() + # on macOS, need this framework to query OS API to control display sleep and system sleep behavior target_link_libraries(SerialProgramsLib PRIVATE "-framework IOKit -framework CoreFoundation") else() # Linux diff --git a/SerialPrograms/cmake/MacOSXBundleInfo.plist.in b/SerialPrograms/cmake/MacOSXBundleInfo.plist.in index b23642e29e..3f01fbce4e 100644 --- a/SerialPrograms/cmake/MacOSXBundleInfo.plist.in +++ b/SerialPrograms/cmake/MacOSXBundleInfo.plist.in @@ -2,6 +2,13 @@ + LSEnvironment + + LANG + en_US.UTF-8 + LC_ALL + en_US.UTF-8 + CFBundleDevelopmentRegion English CFBundleExecutable