Commit 4d77c0ec authored by jcarpent's avatar jcarpent
Browse files

[CMake] On APPLE, the library can become SHARED

parent 30ebc395
......@@ -111,12 +111,7 @@ SET(${PROJECT_NAME}_SOURCES
src/quaternion.cpp
)
# With Darwin system, the library needs to be static for a complete exposion of eigen structure under Python
IF(APPLE)
ADD_LIBRARY(${PROJECT_NAME} ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS})
ELSE(APPLE)
ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS})
ENDIF(APPLE)
ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS})
TARGET_LINK_BOOST_PYTHON(${PROJECT_NAME})
PKG_CONFIG_USE_DEPENDENCY(${PROJECT_NAME} eigen3)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment