Commit 205e15bb9f0aff0168bb27a860646ff76a338879

frankheckenbach 2018-12-14T16:20:15

Merge pull request #1 from JuhaSointusalo/fix-windows-dll-build fix building DLL on Windows

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6c5a57..6b230ce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,7 @@ ENDIF(NOT CMAKE_BUILD_TYPE)
 OPTION(BUILD_SHARED_LIBS "Build Shared Libraries" ON)
 IF(BUILD_SHARED_LIBS)
  	SET(LIB_TYPE SHARED)
+	ADD_DEFINITIONS(-DFTGL_LIBRARY)
 ELSE(BUILD_SHARED_LIBS)
 	SET(LIB_TYPE STATIC)
 	ADD_DEFINITIONS(-D FTGL_LIBRARY_STATIC)