diff --git a/CMakeLists.txt b/CMakeLists.txt index 91e2939..27cfa9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ CPMAddPackage( # NOTE: If fmt is not imported, this is needed to prevent: # CMake Error: install(EXPORT "GreeterTargets" ...) includes target # "Greeter" which requires target "fmt" that is not in any export set. -option(FMT_INSTALL "" YES) +option(FMT_INSTALL "needed!" YES) CPMAddPackage( NAME fmt diff --git a/cmake/tools.cmake b/cmake/tools.cmake index 836ecd4..1103d50 100644 --- a/cmake/tools.cmake +++ b/cmake/tools.cmake @@ -67,7 +67,7 @@ if(USE_SANITIZER OR USE_STATIC_ANALYZER) endif() # enables CCACHE support through the USE_CCACHE flag possible values are: YES, NO or equivalent -option(USE_CCACHE "enable ccache usages" ON) +option(USE_CCACHE "enable ccache usages" NO) if(USE_CCACHE) CPMAddPackage( NAME Ccache.cmake diff --git a/standalone/CMakeLists.txt b/standalone/CMakeLists.txt index 3792677..dd4649f 100644 --- a/standalone/CMakeLists.txt +++ b/standalone/CMakeLists.txt @@ -26,7 +26,8 @@ file(GLOB sources CONFIGURE_DEPENDS source/*.cpp) add_executable(GreeterStandalone ${sources}) # FIXME: WHY? CK -# set_target_properties(GreeterStandalone PROPERTIES CXX_STANDARD 17 OUTPUT_NAME "Greeter") +set_target_properties(GreeterStandalone OUTPUT_NAME "Greeter") + target_compile_features(GreeterStandalone PUBLIC cxx_std_17) target_link_libraries(GreeterStandalone PRIVATE Greeter::Greeter cxxopts) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a175b0f..2d3bed3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -45,7 +45,7 @@ target_compile_features(GreeterTests PUBLIC cxx_std_17) # enable compiler warnings if(NOT TEST_INSTALLED_VERSION) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") - target_compile_options(Greeter PRIVATE -Wall -pedantic -Wextra -Werror) + target_compile_options(Greeter PRIVATE -Wall -Wpedantic -Wextra -Werror) elseif(MSVC) target_compile_options(Greeter PRIVATE /W4 /WX) target_compile_definitions(GreeterTests PRIVATE DOCTEST_CONFIG_USE_STD_HEADERS)