From be202e3107e2f5e02fdc3f676bebb5d63e7711b4 Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Sat, 31 Dec 2022 10:00:30 +0200 Subject: [PATCH] Minor refactoring --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 661663c..7ec0501 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,7 @@ target_include_directories( # If this is the top level project, add in logic to install elfio if(IS_TOP_PROJECT) - # Enable C++11 for examples and tests + # Enable C++14 for examples and tests if(ELFIO_BUILD_EXAMPLES OR ELFIO_BUILD_TESTS) set(CMAKE_CXX_STANDARD 14) endif() @@ -57,7 +57,7 @@ if(IS_TOP_PROJECT) add_subdirectory(examples) endif() - if(ELFIO_BUILD_TESTS AND IS_TOP_PROJECT) + if(ELFIO_BUILD_TESTS) # set (CMAKE_CXX_FLAGS "-Wall") enable_testing() add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} USES_TERMINAL)