cotire : Exclude main project from build when unity build is present

This commit is contained in:
Magne Sjaastad 2016-06-10 12:47:21 +02:00
parent 80d7ae7262
commit cdc6bbeab5

View File

@ -390,6 +390,7 @@ if(RESINSIGHT_ENABLE_COTIRE)
# make sure the unity target is included in the active builds to trigger rebuild before debug
get_target_property(_unityTargetName ResInsight COTIRE_UNITY_TARGET_NAME)
set_target_properties(${_unityTargetName} PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD FALSE)
set_target_properties(ResInsight PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD TRUE)
endif()