From 58c625e409b780fe60aba1d1a112ee44111910b1 Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Tue, 18 Jan 2022 12:20:02 +0200 Subject: [PATCH] Apparently, VC++ compiler does not accept -Wextra option --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5601743..f6776e2 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)