fix for building with mingw/cmake
authorCampbell Barton <ideasman42@gmail.com>
Mon, 22 Nov 2010 23:25:21 +0000 (23:25 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 22 Nov 2010 23:25:21 +0000 (23:25 +0000)
intern/ghost/CMakeLists.txt
source/creator/CMakeLists.txt

index 8319772..845e38c 100644 (file)
@@ -83,9 +83,10 @@ ELSEIF(UNIX)
 ELSEIF(WIN32)
        IF(MSVC)
                SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
-               LIST(APPEND INC ${WINTAB_INC})
        ENDIF(MSVC)
 
+       LIST(APPEND INC ${WINTAB_INC})
+
        LIST(APPEND SRC
                ./intern/GHOST_DisplayManagerWin32.cpp
                ./intern/GHOST_SystemWin32.cpp
index ea338cf..e039d67 100644 (file)
@@ -303,6 +303,8 @@ IF(WITH_INSTALL)
                                        POST_BUILD
                                        MAIN_DEPENDENCY blender
                                        COMMAND if not exist \"${TARGETDIR}\\${BLENDER_VERSION}\\python\\lib\" mkdir \"${TARGETDIR}\\${BLENDER_VERSION}\\python\\lib\"
+                                       COMMAND if \"$(ConfigurationName)\" == \"\" copy /Y \"${LIBDIR}\\python\\lib\\python31.dll\" \"${TARGETDIR}\\\"
+                                       COMMAND if \"$(ConfigurationName)\" == \"\" xcopy /E /Y \"${LIBDIR}\\release\\python31\\*.*\" \"${TARGETDIR}\\${BLENDER_VERSION}\\python\\lib\\\"
                                        COMMAND if \"$(ConfigurationName)\" == \"Debug\" copy /Y \"${LIBDIR}\\python\\lib\\python31_d.dll\" \"${TARGETDIR}\\\"
                                        COMMAND if \"$(ConfigurationName)\" == \"Debug\" xcopy /E /Y \"${LIBDIR}\\release\\python31_d\\*.*\" \"${TARGETDIR}\\${BLENDER_VERSION}\\python\\lib\\\"
                                        COMMAND if \"$(ConfigurationName)\" == \"RelWithDebInfo\" copy /Y \"${LIBDIR}\\python\\lib\\python31_d.dll\" \"${TARGETDIR}\\\"