Replace ad-hoc CMake code with DEFINE_SYMBOL

This target property does what we were doing manually.
This commit is contained in:
Camilla Löwy
2019-12-15 09:21:58 +01:00
parent a5ed740d9d
commit 8a5fd0c5a4
3 changed files with 1 additions and 6 deletions

View File

@@ -37,10 +37,6 @@ cmake_dependent_option(GLFW_USE_WAYLAND "Use Wayland for window creation" OFF
cmake_dependent_option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON
"MSVC" OFF)
if (BUILD_SHARED_LIBS)
set(_GLFW_BUILD_DLL 1)
endif()
if (BUILD_SHARED_LIBS AND UNIX)
# On Unix-like systems, shared libraries can use the soname system.
set(GLFW_LIB_NAME glfw)