changeset 24:902e6c52e154

fix for msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Nov 2016 15:50:31 +0100
parents a4a1e4033403
children dfa0e18afd76 99b833843ba9
files Resources/CMake/CairoConfiguration.cmake
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/CairoConfiguration.cmake	Wed Nov 23 15:27:57 2016 +0100
+++ b/Resources/CMake/CairoConfiguration.cmake	Wed Nov 23 15:50:31 2016 +0100
@@ -213,6 +213,13 @@
 
   endif()
 
+
+  if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
+    # Explicitly request static building on Windows
+    add_definitions(-DCAIRO_WIN32_STATIC_BUILD=1)
+  endif()
+
+
   set_property(
     SOURCE ${CAIRO_SOURCES}
     PROPERTY COMPILE_DEFINITIONS "${CAIRO_DEFINITIONS}"