Paste: clay/CMakeLists.txt

Author: elrood
Mode: patch
Date: Wed, 28 Jul 2010 19:33:16
Plain Text |
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,9 +34,9 @@
         OUTPUT_STRIP_TRAILING_WHITESPACE
     )
 elseif(MSVC)
-    set(LLVM_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../llvm)
-    set(LLVM_BUILD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../llvm-build)
-    set(CLANG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../llvm/tools/clang)
+    set(LLVM_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../llvm CACHE PATH "llvm source path")
+    set(LLVM_BUILD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../llvm-build CACHE PATH "llvm build path")
+    set(CLANG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../llvm/tools/clang CACHE PATH "clang source path")
 
     if(IS_DIRECTORY ${LLVM_BUILD_DIR})
         link_directories(${LLVM_BUILD_DIR}/lib/Release)
@@ -77,7 +77,11 @@
 
 set(CMAKE_OSX_ARCHITECTURES x86_64)
 
-install(DIRECTORY lib-clay DESTINATION lib)
+if(UNIX)
+	install(DIRECTORY lib-clay DESTINATION lib)
+else(UNIX)
+	install(DIRECTORY lib-clay DESTINATION bin)
+endif(UNIX)
 
 add_subdirectory(compiler)
 add_subdirectory(misc)

New Annotation

Summary:
Author:
Mode:
Body: