From b03e1f6e69b23cea7b7bd1ffcc49734f05a8e96e Mon Sep 17 00:00:00 2001 From: Ariel Vina-Rodriguez Date: Thu, 11 Feb 2016 00:12:20 +0100 Subject: [PATCH] =?UTF-8?q?FIX=20g++-5:=20error:=20unrecognized=20command?= =?UTF-8?q?=20line=20option=20=E2=80=98-stdlib=3Dlibstdc++=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3eb78781..1b9c9cc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -265,7 +265,7 @@ endif(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") # enable static linkage if (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND NOT MINGW) #set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") - set(CMAKE_EXE_LINKER_FLAGS " -stdlib=libstdc++ -static-libgcc -static-libstdc++") + set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++") endif ()