Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gouache committed Sep 27, 2024
1 parent 4a411ff commit 495c2ad
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ FetchContent_MakeAvailable(googletest)

include(GoogleTest)

if((CXX_COMPILER_ID STREQUAL "MSVC"))
add_compile_options(/wd4101 /wd4710 /wd4711)
endif()

# Find dependencies
find_package(Boost CONFIG REQUIRED)
add_executable(basic_test basic_test.cpp drivertest.cpp)

target_compile_options(
basic_test
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-Wall>
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/w4;/wd4101;/wd4710;/wd4711>
PRIVATE $<$<CXX_COMPILER_ID:AppleClang,Clang,GNU>:-Wall;-Wextra;-pedantic>)

# MSVC requires /bigobj to build in debug config
Expand All @@ -40,7 +36,7 @@ gtest_discover_tests(basic_test)
add_executable(plugin_test plugin_test.cpp path_helper.cpp)
target_compile_options(
plugin_test
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-Wall>
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/w4;/wd4101;/wd4710;/wd4711>
PRIVATE $<$<CXX_COMPILER_ID:AppleClang,Clang,GNU>:-Wall;-Wextra;-pedantic>)
if(WIN32)
# custom build and test execution for Windows
Expand Down

0 comments on commit 495c2ad

Please sign in to comment.