diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-14 04:04:39 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-14 04:04:39 +0000 |
| commit | fe150555cb15e905b080ce7e85a20fdcb01e9259 (patch) | |
| tree | b21ff8f63930b7a4515b34683d7e89ba49744403 /unityplugin/GhostCubePlugin/PluginSource | |
| parent | Adding UWP to CMake (in progress) (diff) | |
| download | DiligentEngine-fe150555cb15e905b080ce7e85a20fdcb01e9259.tar.gz DiligentEngine-fe150555cb15e905b080ce7e85a20fdcb01e9259.zip | |
Optimized CMake files with set_common_target_properties()
Diffstat (limited to 'unityplugin/GhostCubePlugin/PluginSource')
| -rw-r--r-- | unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt index b1eda3b..3430357 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt +++ b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt @@ -84,6 +84,8 @@ if(GL_SUPPORTED OR GLES_SUPPORTED) target_link_libraries(GhostCubePlugin-shared PRIVATE GraphicsEngineOpenGL-static) endif() +set_common_target_properties(GhostCubePlugin-shared) + if(MSVC) # Disable MSVC-specific warnings # - w4201: nonstandard extension used: nameless struct/unio @@ -91,13 +93,6 @@ if(MSVC) if(PLATFORM_UNIVERSAL_WINDOWS) target_compile_definitions(GhostCubePlugin-shared PRIVATE WINDOWS_UWP UNITY_METRO) endif() - # Enable link-time code generation for release builds (I was not able to - # find any way to set these settings through interface library BuildSettings) - set_target_properties(GhostCubePlugin-shared PROPERTIES - LINK_FLAGS_RELEASE /LTCG - LINK_FLAGS_MINSIZEREL /LTCG - LINK_FLAGS_RELWITHDEBINFO /LTCG - ) if(PLATFORM_WIN32) if(WIN64) |
