mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Disable dynamic loading for Win32 DLL.
This commit is contained in:
parent
98fbc07aa4
commit
a82598ea24
@ -47,9 +47,10 @@ set_target_properties(libglfwStatic libglfwShared PROPERTIES
|
||||
OUTPUT_NAME glfw)
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(libglfwShared winmm)
|
||||
# The GLFW DLL needs a special compile-time macro and import library name
|
||||
set_target_properties(libglfwShared PROPERTIES
|
||||
DEFINE_SYMBOL GLFW_BUILD_DLL
|
||||
COMPILE_DEFINITIONS "GLFW_BUILD_DLL;_GLFW_NO_DLOAD_GDI32;_GLFW_NO_DLOAD_WINMM"
|
||||
PREFIX ""
|
||||
IMPORT_PREFIX ""
|
||||
IMPORT_SUFFIX "dll.lib")
|
||||
|
Loading…
Reference in New Issue
Block a user