diff --git a/CMakeLists.txt b/CMakeLists.txt index f7df54e9..e2ecf112 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,8 +36,8 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g -DDEBUG -Wall") # -fPIC is for compiling on 64bit if( CMAKE_SIZEOF_VOID_P EQUAL 8 ) - set(CMAKE_C_FLAGS "-fPIC" ${CMAKE_C_FLAGS}) - set(CMAKE_C_FLAGS_DEBUG "-fPIC" ${CMAKE_C_FLAGS_DEBUG}) + set(CMAKE_C_FLAGS "-fPIC ${CMAKE_C_FLAGS}") + set(CMAKE_C_FLAGS_DEBUG "-fPIC ${CMAKE_C_FLAGS_DEBUG}") endif( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set(CTEST_MEMORYCHECK_COMMAND "/usr/bin/valgrind")