diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-17 22:44:08 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-17 22:44:08 +0000 |
| commit | bb57989cc4cc4214296cf0340ad4c5c0c2f832b3 (patch) | |
| tree | afd0275ad818645294d2070e9bf569df56b55ec5 /Graphics/GraphicsEngineOpenGL | |
| parent | CMake: minor update to fix Android link error (diff) | |
| download | DiligentCore-bb57989cc4cc4214296cf0340ad4c5c0c2f832b3.tar.gz DiligentCore-bb57989cc4cc4214296cf0340ad4c5c0c2f832b3.zip | |
CMake: changed output of GraphicsEngineOpenGL-shared to GraphicsEngineOpenGL on all pltforms but Win32
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/CMakeLists.txt | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt index 149817c2..4ce567d0 100644 --- a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt +++ b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt @@ -159,12 +159,18 @@ target_link_libraries(GraphicsEngineOpenGL-static PRIVATE ${PRIVATE_DEPENDENCIES target_link_libraries(GraphicsEngineOpenGL-shared PRIVATE ${PRIVATE_DEPENDENCIES} PUBLIC ${PUBLIC_DEPENDENCIES}) target_compile_definitions(GraphicsEngineOpenGL-shared PUBLIC ENGINE_DLL) -set_target_properties(GraphicsEngineOpenGL-shared PROPERTIES - OUTPUT_NAME_DEBUG GraphicsEngineOpenGL${DLL_DBG_SUFFIX} - OUTPUT_NAME_RELEASE GraphicsEngineOpenGL${DLL_REL_SUFFIX} - OUTPUT_NAME_RELWITHDEBINFO GraphicsEngineOpenGL${DLL_REL_SUFFIX} - OUTPUT_NAME_MINSIZEREL GraphicsEngineOpenGL${DLL_REL_SUFFIX} -) +if(PLATFORM_WIN32) + set_target_properties(GraphicsEngineOpenGL-shared PROPERTIES + OUTPUT_NAME_DEBUG GraphicsEngineOpenGL${DLL_DBG_SUFFIX} + OUTPUT_NAME_RELEASE GraphicsEngineOpenGL${DLL_REL_SUFFIX} + OUTPUT_NAME_RELWITHDEBINFO GraphicsEngineOpenGL${DLL_REL_SUFFIX} + OUTPUT_NAME_MINSIZEREL GraphicsEngineOpenGL${DLL_REL_SUFFIX} + ) +else() + set_target_properties(GraphicsEngineOpenGL-shared PROPERTIES + OUTPUT_NAME GraphicsEngineOpenGL + ) +endif() set_common_target_properties(GraphicsEngineOpenGL-shared) set_common_target_properties(GraphicsEngineOpenGL-static) |
