System : Improved control of cotire

This commit is contained in:
Magne Sjaastad 2017-03-29 08:13:45 +02:00
parent c257c52944
commit 3007a62238
2 changed files with 1 additions and 4 deletions

View File

@ -104,9 +104,6 @@ if(RESINSIGHT_ENABLE_COTIRE)
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
include(cotire)
set(CAF_USE_COTIRE TRUE CACHE INTERNAL "CAF: Use cotire")
endif()

View File

@ -141,7 +141,7 @@ target_link_libraries ( ${PROJECT_NAME}
${QT_LIBRARIES}
)
if (CAF_USE_COTIRE)
if (COMMAND cotire)
cotire(${PROJECT_NAME})
# make sure the unity target is included in the active builds to trigger rebuild before debug