Skip to content

Commit 34cbd17

Browse files
committed
Remove unused parameter errors on x86 Mac
1 parent 34b215f commit 34cbd17

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

SerialPrograms/CMakeLists.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,10 @@ else() # macOS and Linux
462462
endif()
463463

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

470471
# on macOS, need this framework to query OS API to control display sleep and system sleep behavior
@@ -657,3 +658,11 @@ endif() # end WIN32
657658
if (QT_MAJOR GREATER_EQUAL 6)
658659
qt_finalize_target(SerialPrograms)
659660
endif()
661+
COMMENT "Deploying runtime (Qt, packages, DLLs) to ${WIN_DEPLOY_DIR}"
662+
VERBATIM
663+
)
664+
endif() # end WIN32
665+
666+
if (QT_MAJOR GREATER_EQUAL 6)
667+
qt_finalize_target(SerialPrograms)
668+
endif()

0 commit comments

Comments
 (0)