Skip to content

Commit ca266ee

Browse files
committed
cmake: fix overloaded-shift-op-parentheses warning removal on MSVC
1 parent 85d520f commit ca266ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
129129

130130
add_executable(phoenix-tests ${PHOENIX_TESTS})
131131
target_link_libraries(phoenix-tests PRIVATE phoenix doctest_with_main)
132-
target_compile_options(phoenix-tests PRIVATE ${PHOENIX_CXX_FLAGS} -Wno-overloaded-shift-op-parentheses)
132+
target_compile_options(phoenix-tests PRIVATE ${PHOENIX_CXX_FLAGS})
133+
134+
if (NOT MSVC)
135+
target_compile_options(phoenix-tests PRIVATE -Wno-overloaded-shift-op-parentheses)
136+
endif ()
137+
133138
target_link_options(phoenix-tests PRIVATE ${PHOENIX_CXX_FLAGS})
134139

135140
doctest_discover_tests(phoenix-tests EXTRA_ARGS -tse=messages,script,world WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/tests)

0 commit comments

Comments
 (0)