From bbd2b1f7128cab2cc53a0f45b13a3b051f63ae59 Mon Sep 17 00:00:00 2001 From: Thomas Pedersen Date: Thu, 23 Oct 2014 12:51:03 +0200 Subject: [PATCH] Fixed possible bug --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")