Поддержка cotire

This commit is contained in:
Andrei Astafev 2020-04-18 21:03:03 +03:00
parent a1765526f8
commit 81b3a19a55
2 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,7 @@ include(CMLibCompilerFlags)
include(CMLibDistCC)
include(CMLibCompilerFeaturesHPPGenerate)
include(CMLibFlagRemove)
include(CMLibCotire)
include(CMLibBuildTypes)
include(CMLibCommonTargetProperties)
include(CMLibCommonLibraryTarget)
@ -36,7 +37,6 @@ include(CMLibCodeAnalysisClangTidy)
include(CMLibCodeAnalysisClazy)
include(CMLibCodeCoverage)
include(CMLibSanitizers)
include(cotire)
include(CMLibFormatSources)
include(CMLibDocDoxygen)

View File

@ -69,6 +69,9 @@ function(common_target_properties target)
endif()
endif()
set_target_properties(${target} PROPERTIES COTIRE_ENABLE_PRECOMPILED_HEADER ${CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER})
set_target_properties(${target} PROPERTIES COTIRE_ADD_UNITY_BUILD ${CMLIB_COTIRE_ADD_UNITY_BUILD})
if(CMAKE_BUILD_TYPE STREQUAL Profile)
target_compile_definitions(${target} ${__visibility} PROFILE)
elseif(CMAKE_BUILD_TYPE STREQUAL Debug)