diff --git a/CMLibBuildTypes.cmake b/CMLibBuildTypes.cmake index 5b5e0a7..eb538dc 100644 --- a/CMLibBuildTypes.cmake +++ b/CMLibBuildTypes.cmake @@ -50,16 +50,24 @@ elseif(CMAKE_BUILD_TYPE STREQUAL Debug) string(APPEND CMAKE_C_FLAGS_DEBUG " -ggdb") string(APPEND CMAKE_CXX_FLAGS_DEBUG " -ggdb") endif() - set(CMAKE_VERBOSE_MAKEFILE 1) - set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + set(CMAKE_VERBOSE_MAKEFILE + ON + CACHE BOOL "Enable verbose build file generation." FORCE) + set(CMAKE_EXPORT_COMPILE_COMMANDS + ON + CACHE BOOL "Enable output of compile commands during generation." FORCE) set(DEBUG 1) elseif(CMAKE_BUILD_TYPE STREQUAL Release) set(RELEASE 1) elseif(CMAKE_BUILD_TYPE STREQUAL None) # Режим None используется для статического анализа кода set(ANALYSIS 1) - set(CMAKE_VERBOSE_MAKEFILE 1) - set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + set(CMAKE_VERBOSE_MAKEFILE + ON + CACHE BOOL "Enable verbose build file generation." FORCE) + set(CMAKE_EXPORT_COMPILE_COMMANDS + ON + CACHE BOOL "Enable output of compile commands during generation." FORCE) # set(USE_CLANG_TIDY ON CACHE BOOL "Use clang-tidy") # set(USE_CPPCHECK ON CACHE BOOL "Use cppcheck") set(USE_PVS_STUDIO