Skip to content

Commit 4d77c0e

Browse files
committed
[CMake] On APPLE, the library can become SHARED
1 parent 30ebc39 commit 4d77c0e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,7 @@ SET(${PROJECT_NAME}_SOURCES
111111
src/quaternion.cpp
112112
)
113113

114-
# With Darwin system, the library needs to be static for a complete exposion of eigen structure under Python
115-
IF(APPLE)
116-
ADD_LIBRARY(${PROJECT_NAME} ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS})
117-
ELSE(APPLE)
118-
ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS})
119-
ENDIF(APPLE)
114+
ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS})
120115

121116
TARGET_LINK_BOOST_PYTHON(${PROJECT_NAME})
122117
PKG_CONFIG_USE_DEPENDENCY(${PROJECT_NAME} eigen3)

0 commit comments

Comments
 (0)