summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-04-16 17:26:50 +0000
committerChris Bieneman <beanz@apple.com>2015-04-16 17:26:50 +0000
commit578a18c4fc575cf655cb41176bf3742560867931 (patch)
tree947410c45b0f410758e426900c7244f5178d7207 /cmake
parent9e93b6429d7d48784d2f27291a34b2f47afd719d (diff)
Better fix to the windows conditional.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 050939022b..2f4a7784ad 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -423,7 +423,7 @@ macro(add_llvm_library name)
set_target_properties( ${name} PROPERTIES EXCLUDE_FROM_ALL ON)
else()
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO")
- if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
+ if(WIN32 OR CYGWIN)
install(TARGETS ${name}
EXPORT LLVMExports
RUNTIME DESTINATION lib${LLVM_LIBDIR_SUFFIX}