From 62a6f61acfbce2b470df11732d7905d7d66d6b14 Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Sat, 1 Jan 2022 17:55:25 +0200 Subject: [PATCH] Apparently, VS build doesn't like -Wextra option --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5601743..8a1a0e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)