Commit 2c89e2c97b3be9459b9867a8a9a59c4f46653389

Werner Lemberg 2015-06-28T11:06:47

* CMakeLists.txt: Improve MSVC support (#43737).

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 218b440..dc2a74f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -303,6 +303,12 @@ if (BUILD_FRAMEWORK)
 endif ()
 
 
+if (MSVC)
+  set_target_properties(freetype PROPERTIES
+    COMPILE_FLAGS /Fd"$(IntDir)$(TargetName).pdb")
+endif ()
+
+
 if (ZLIB_FOUND)
   target_link_libraries(freetype ${ZLIB_LIBRARIES})
   include_directories(${ZLIB_INCLUDE_DIRS})
diff --git a/ChangeLog b/ChangeLog
index f3e14ef..320b9c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2015-06-28  Werner Lemberg  <wl@gnu.org>
 
+	* CMakeLists.txt: Improve MSVC support (#43737).
+
+2015-06-28  Werner Lemberg  <wl@gnu.org>
+
 	[cmake] Check for libraries and create `ftoption.h'.
 
 	* builds/FindHarfBuzz.cmake: New file, taken from