summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/CMakeLists.txt16
1 files changed, 2 insertions, 14 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
index 54893574..bf046937 100644
--- a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
+++ b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
@@ -158,20 +158,8 @@ set_target_properties(GraphicsEngineOpenGL-shared PROPERTIES
OUTPUT_NAME_MINSIZEREL GraphicsEngineOpenGL${DLL_REL_SUFFIX}
)
-if(MSVC)
- # 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(GraphicsEngineOpenGL-shared PROPERTIES
- LINK_FLAGS_RELEASE /LTCG
- LINK_FLAGS_MINSIZEREL /LTCG
- LINK_FLAGS_RELWITHDEBINFO /LTCG
- )
- set_target_properties(GraphicsEngineOpenGL-static PROPERTIES
- STATIC_LIBRARY_FLAGS_RELEASE /LTCG
- STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG
- STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG
- )
-endif()
+set_common_target_properties(GraphicsEngineOpenGL-shared)
+set_common_target_properties(GraphicsEngineOpenGL-static)
source_group("src" FILES ${SOURCE})
if(PLATFORM_WIN32)