forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0001-alembic-1.7.9-fix-windows-build.patch
40 lines (36 loc) · 1.18 KB
/
0001-alembic-1.7.9-fix-windows-build.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,7 +74,11 @@
# Set static/dynamic build options
SET(LIB_TYPE STATIC)
-SET(RUNTIME_INSTALL_DIR lib)
+IF (WIN32)
+ SET(RUNTIME_INSTALL_DIR bin)
+ELSE()
+ SET(RUNTIME_INSTALL_DIR lib)
+ENDIF()
SET(LIBRARY_INSTALL_DIR lib)
SET(ARCHIVE_INSTALL_DIR lib)
IF (ALEMBIC_SHARED_LIBS)
@@ -131,7 +135,7 @@
endif()
endif()
-IF (NOT ${WINDOWS})
+IF (NOT MSVC)
SET(EXTERNAL_MATH_LIBS "-lm")
ELSE()
SET(EXTERNAL_MATH_LIBS "")
--- a/lib/Alembic/CMakeLists.txt 2018-10-12 16:57:05.824799900 -0400
+++ b/lib/Alembic/CMakeLists.txt 2018-10-12 17:02:05.467135400 -0400
@@ -85,11 +85,12 @@
)
SET( ALEMBIC_LIB_INSTALL_DIR lib CACHE STRING "Where to install the Alembic libs")
+SET( ALEMBIC_BIN_INSTALL_DIR bin CACHE STRING "Where to install the Alembic runtime")
INSTALL(TARGETS Alembic
EXPORT AlembicTargets
LIBRARY DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
- RUNTIME DESTINATION ${ALEMBIC_LIB_INSTALL_DIR})
+ RUNTIME DESTINATION ${ALEMBIC_BIN_INSTALL_DIR})
#-******************************************************************************
# PACKAGE EXPORTS