Skip to content

Commit

Permalink
honor 3.6 and 3.7 target properties upon generating unity target
Browse files Browse the repository at this point in the history
  • Loading branch information
sakra committed Dec 8, 2016
1 parent 5e61a44 commit e644a54
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CMake/cotire.cmake
Expand Up @@ -3069,7 +3069,8 @@ function (cotire_setup_unity_build_target _languages _configurations _target)
POSITION_INDEPENDENT_CODE
C_COMPILER_LAUNCHER CXX_COMPILER_LAUNCHER
C_INCLUDE_WHAT_YOU_USE CXX_INCLUDE_WHAT_YOU_USE
C_VISIBILITY_PRESET CXX_VISIBILITY_PRESET VISIBILITY_INLINES_HIDDEN)
C_VISIBILITY_PRESET CXX_VISIBILITY_PRESET VISIBILITY_INLINES_HIDDEN
C_CLANG_TIDY CXX_CLANG_TIDY)
# copy compile features
cotire_copy_set_properites("${_configurations}" TARGET ${_target} ${_unityTargetName}
C_EXTENSIONS C_STANDARD C_STANDARD_REQUIRED
Expand All @@ -3092,7 +3093,8 @@ function (cotire_setup_unity_build_target _languages _configurations _target)
LINK_INTERFACE_MULTIPLICITY LINK_INTERFACE_MULTIPLICITY_<CONFIG>
LINK_SEARCH_START_STATIC LINK_SEARCH_END_STATIC
STATIC_LIBRARY_FLAGS STATIC_LIBRARY_FLAGS_<CONFIG>
NO_SONAME SOVERSION VERSION)
NO_SONAME SOVERSION VERSION
LINK_WHAT_YOU_USE)
# copy cmake stuff
cotire_copy_set_properites("${_configurations}" TARGET ${_target} ${_unityTargetName}
IMPLICIT_DEPENDS_INCLUDE_TRANSFORM RULE_LAUNCH_COMPILE RULE_LAUNCH_CUSTOM RULE_LAUNCH_LINK)
Expand All @@ -3115,7 +3117,9 @@ function (cotire_setup_unity_build_target _languages _configurations _target)
VS_SCC_AUXPATH VS_SCC_LOCALPATH VS_SCC_PROJECTNAME VS_SCC_PROVIDER
VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION
VS_WINRT_COMPONENT VS_WINRT_EXTENSIONS VS_WINRT_REFERENCES
WIN32_EXECUTABLE WINDOWS_EXPORT_ALL_SYMBOLS)
WIN32_EXECUTABLE WINDOWS_EXPORT_ALL_SYMBOLS
DEPLOYMENT_REMOTE_DIRECTORY VS_CONFIGURATION_TYPE
VS_SDK_REFERENCES)
# copy Android platform specific stuff
cotire_copy_set_properites("${_configurations}" TARGET ${_target} ${_unityTargetName}
ANDROID_API ANDROID_API_MIN ANDROID_GUI
Expand Down

0 comments on commit e644a54

Please sign in to comment.