From: Eduardo Davila Date: Sun, 5 Sep 2010 13:35:29 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: CREATOOLS.2-0-3~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=55d531453c0d97c7901dc6ff451f2098726393dd;p=creaRigidRegistration.git *** empty log message *** --- diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index bdd1edb..e942ad6 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -76,6 +76,9 @@ IF ( BUILD_${LIBRARY_NAME} ) # and uncomment the 2 lines hereafter: + IF(UNIX) + ADD_DEFINITIONS(-fPIC) + ENDIF(UNIX) ADD_LIBRARY(${LIBRARY_NAME} STATIC ${${LIBRARY_NAME}_SOURCES}) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES} )