From 9eb0a3f3d55cd4d2a0521dbba6cd148ae821a2ce Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 23 May 2017 15:34:02 +0200 Subject: [PATCH] Fix error when custom CMAKE_C_FLAGS is specified --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c1804159..53585ccbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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