summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-08-14 19:39:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-08-14 19:39:42 +0200
commit68211946cb54721fcd865a395e8b6caeb3d76bf8 (patch)
tree7c8e450871e4ac1495926fb0a62e2f6c37f325b8 /cmake/opentrack-boilerplate.cmake
parentf2236891202f70b3b964b851ba98890fd7ca7a91 (diff)
cmake: preliminary support for clang with vc++ codegen
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 70ded904..0ed90867 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -85,7 +85,7 @@ function(otr_compat target)
set(l-props)
get_property(linker-lang TARGET ${target} PROPERTY LINKER_LANGUAGE)
- if(CMAKE_COMPILER_IS_GNUCXX)
+ if(CMAKE_COMPILER_IS_GNUCXX AND NOT MSVC)
set(c-props " -fvisibility=hidden")
if(NOT is-c-only)
if(NOT WIN32 OR NOT ".${CMAKE_CXX_COMPILER_ID}" STREQUAL ".Clang")
@@ -94,7 +94,7 @@ function(otr_compat target)
endif()
endif()
- if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE)
+ if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE AND NOT MSVC)
set(l-props "-Wl,--as-needed")
endif()