mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 23:43:15 +00:00
Replace ad-hoc CMake code with DEFINE_SYMBOL
This target property does what we were doing manually.
This commit is contained in:
@@ -84,6 +84,7 @@ set_target_properties(glfw PROPERTIES
|
||||
SOVERSION ${GLFW_VERSION_MAJOR}
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
C_STANDARD 99
|
||||
DEFINE_SYMBOL _GLFW_BUILD_DLL
|
||||
FOLDER "GLFW3")
|
||||
|
||||
target_compile_definitions(glfw PRIVATE _GLFW_USE_CONFIG_H)
|
||||
|
||||
@@ -45,8 +45,6 @@
|
||||
// Define this to 1 if building GLFW for OSMesa
|
||||
#cmakedefine _GLFW_OSMESA
|
||||
|
||||
// Define this to 1 if building as a shared library / dynamic library / DLL
|
||||
#cmakedefine _GLFW_BUILD_DLL
|
||||
// Define this to 1 to use Vulkan loader linked statically into application
|
||||
#cmakedefine _GLFW_VULKAN_STATIC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user