From ccd7ec01200d781e4c4ce9afb563df5fbe19a084 Mon Sep 17 00:00:00 2001 From: Zbigniew Mandziejewicz Date: Mon, 5 Oct 2015 14:46:34 +0800 Subject: [PATCH] Include GLFW_DLL in interface definitions --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cfc3439b8..5443b61b7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -72,6 +72,7 @@ set_target_properties(glfw PROPERTIES if (BUILD_SHARED_LIBS) if (WIN32) + target_compile_definitions(glfw INTERFACE -DGLFW_DLL) # The GLFW DLL needs a special compile-time macro and import library name set_target_properties(glfw PROPERTIES PREFIX "" IMPORT_PREFIX "")