From 55d531453c0d97c7901dc6ff451f2098726393dd Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Sun, 5 Sep 2010 13:35:29 +0000 Subject: [PATCH] *** empty log message *** --- lib/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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} ) -- 2.45.0