X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FCMakeLists.txt;fp=lib%2FCMakeLists.txt;h=e942ad6aec5e673769488faa06ea87ee729ec2f3;hb=55d531453c0d97c7901dc6ff451f2098726393dd;hp=bdd1edbbe99e74255534df4b2b1ef2db9f8ee884;hpb=0dbe1ccf3b84b7927a126540c29956580946deda;p=creaRigidRegistration.git 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} )