Browse Source

Don't check for GCC flags with MSVC

It doesn't really hurt, but is a waste of time.
coverity_scan
Daniel Scharrer 13 years ago
parent
commit
88f2f463bc
  1. 12
      CMakeLists.txt

12
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

Loading…
Cancel
Save