Fix error when custom CMAKE_C_FLAGS is specified
authorrdb <git@rdb.name>
Tue, 23 May 2017 13:34:02 +0000 (15:34 +0200)
committerrdb <git@rdb.name>
Tue, 23 May 2017 13:34:02 +0000 (15:34 +0200)
CMakeLists.txt

index 5c18041..53585cc 100644 (file)
@@ -178,7 +178,7 @@ ENDIF( UNIX )
 IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT CMAKE_COMPILER_IS_MINGW)
   # hide all not-exported symbols
   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fvisibility=hidden -fPIC -Wall -std=c++0x")
-  SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -fPIC)
+  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
   SET(LIBSTDC++_LIBRARIES -lstdc++)
 ELSEIF(MSVC)
   # enable multi-core compilation with MSVC