Apparently, VS build doesn't like -Wextra option

This commit is contained in:
Serge Lamikhov-Center 2022-01-01 17:55:25 +02:00
parent f7cd33ad14
commit 62a6f61acf

View File

@ -44,12 +44,12 @@ if (ELFIO_BUILD_EXAMPLES OR ELFIO_BUILD_TESTS)
endif()
if (ELFIO_BUILD_EXAMPLES)
set (CMAKE_CXX_FLAGS "-Wall -Wextra")
set (CMAKE_CXX_FLAGS "-Wall")
add_subdirectory(examples)
endif()
if (ELFIO_BUILD_TESTS AND IS_TOP_PROJECT)
set (CMAKE_CXX_FLAGS "-Wall -Wextra")
set (CMAKE_CXX_FLAGS "-Wall")
enable_testing()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} USES_TERMINAL)
add_subdirectory(tests)