Do not use -fvisibility option with Visual C

It doesn't know the option and prints a warning. 

llvm-svn: 244363
This commit is contained in:
Michael Kruse 2015-08-07 22:16:44 +00:00
parent 8ebad11ee9
commit 27aae88d76

View File

@ -93,7 +93,9 @@ endif ()
#
# We also disable all warnings, as these should be fixed upstream. There is
# no value in reporting them here.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -w")
if (NOT MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -w")
endif ()
# Add path for custom modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${POLLY_SOURCE_DIR}/cmake")