Skip to content

Commit

Permalink
Disable a linux warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Jan 12, 2025
1 parent 2631f9e commit 4f4569f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ if (PLATFORM STREQUAL "Windows")
target_compile_options(commonLib PRIVATE /permissive /W4 /w14242 /w14254 /w14263 /w14265 /w14287 /we4289 /w14296 /w14311 /w14545 /w14546
/w14547 /w14549 /w14555 /w14619 /w14640 /w14826 /w14905 /w14906 /w14928 /external:anglebrackets /external:W0 /WX)
elseif (PLATFORM STREQUAL "Linux")
target_compile_options(${PROJECT_NAME} -Wno-unknown-pragmas)
endif (PLATFORM STREQUAL "Windows")

set(tests
Expand Down Expand Up @@ -106,6 +107,7 @@ if (PLATFORM STREQUAL "Windows")
target_compile_options(${PROJECT_NAME} PRIVATE /permissive /W4 /w14242 /w14254 /w14263 /w14265 /w14287 /we4289 /w14296 /w14311 /w14545 /w14546
/w14547 /w14549 /w14555 /w14619 /w14640 /w14826 /w14905 /w14906 /w14928 /external:anglebrackets /external:W0 /WX)
elseif (PLATFORM STREQUAL "Linux")
target_compile_options(${PROJECT_NAME} -Wno-unknown-pragmas)
endif (PLATFORM STREQUAL "Windows")

################################################################################
Expand Down

0 comments on commit 4f4569f

Please sign in to comment.