Skip to content

Commit f486d30

Browse files
committed
Removed Mac arch fork
Removed MacOS architecture fork for warning flags
1 parent ca4c06b commit f486d30

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

SerialPrograms/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,7 @@ else() # macOS and Linux
461461
endif()
462462

463463
if (APPLE)
464-
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
465-
target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wshorten-64-to-32)
466-
else()
467-
target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter)
468-
endif()
464+
target_compile_options(SerialProgramsLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wshorten-64-to-32)
469465

470466
# on macOS, need this framework to query OS API to control display sleep and system sleep behavior
471467
target_link_libraries(SerialProgramsLib PRIVATE "-framework IOKit -framework CoreFoundation")

0 commit comments

Comments
 (0)