Kaynağa Gözat

fix automoc target dependency for Visual Studio generators

master
Sascha Kratky 9 yıl önce
ebeveyn
işleme
de10fe34ab
1 değiştirilmiş dosya ile 10 ekleme ve 3 silme
  1. +10
    -3
      CMake/cotire.cmake

+ 10
- 3
CMake/cotire.cmake Dosyayı Görüntüle

@@ -3000,9 +3000,16 @@ function (cotire_setup_unity_build_target _languages _configurations _target)
else() else()
add_library(${_unityTargetName} ${_unityTargetSubType} EXCLUDE_FROM_ALL ${_unityTargetSources}) add_library(${_unityTargetName} ${_unityTargetSubType} EXCLUDE_FROM_ALL ${_unityTargetSources})
endif() endif()
if (_targetAutoMoc OR _targetAutoUic OR _targetAutoRcc)
# depend on the original target's implicity generated <targetname>_automoc target
add_dependencies(${_unityTargetName} ${_target}_automoc)
if ("${CMAKE_GENERATOR}" MATCHES "Visual Studio")
# depend on original target's automoc target, if it exists
if (TARGET ${_target}_automoc)
add_dependencies(${_unityTargetName} ${_target}_automoc)
endif()
else()
if (_targetAutoMoc OR _targetAutoUic OR _targetAutoRcc)
# depend on the original target's implicity generated <targetname>_automoc target
add_dependencies(${_unityTargetName} ${_target}_automoc)
endif()
endif() endif()
# copy output location properties # copy output location properties
set (_outputDirProperties set (_outputDirProperties


Yükleniyor…
İptal
Kaydet