From 88f2f463bca69378f3bd17e858f5fcd97c1566ce Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Sat, 9 Feb 2013 10:29:03 +0100 Subject: [PATCH] Don't check for GCC flags with MSVC It doesn't really hurt, but is a waste of time. --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 122b423..a131b94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,8 +49,10 @@ if(WIN32) endif() if(USE_STATIC_LIBS) - add_cxxflag("-static-libgcc") - add_cxxflag("-static-libstdc++") + if(NOT MSVC) + add_cxxflag("-static-libgcc") + add_cxxflag("-static-libstdc++") + endif() set(LZMA_USE_STATIC_LIBS ON) set(Boost_USE_STATIC_LIBS ON) set(ZLIB_USE_STATIC_LIBS ON) @@ -141,8 +143,10 @@ elseif(USE_CXX11) endif() # Don't expose internal symbols to the outside world by default -add_cxxflag("-fvisibility=hidden") -add_cxxflag("-fvisibility-inlines-hidden") +if(NOT MSVC) + add_cxxflag("-fvisibility=hidden") + add_cxxflag("-fvisibility-inlines-hidden") +endif() # Check for optional functionality and system configuration