[cfe-commits] r89320 - /cfe/trunk/tools/driver/CMakeLists.txt
Douglas Gregor
dgregor at apple.com
Wed Nov 18 21:46:45 PST 2009
Author: dgregor
Date: Wed Nov 18 23:46:45 2009
New Revision: 89320
URL: http://llvm.org/viewvc/llvm-project?rev=89320&view=rev
Log:
CMake goop to create clang++ symlink
Modified:
cfe/trunk/tools/driver/CMakeLists.txt
Modified: cfe/trunk/tools/driver/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/CMakeLists.txt?rev=89320&r1=89319&r2=89320&view=diff
==============================================================================
--- cfe/trunk/tools/driver/CMakeLists.txt (original)
+++ cfe/trunk/tools/driver/CMakeLists.txt Wed Nov 18 23:46:45 2009
@@ -13,5 +13,15 @@
add_dependencies(clang clang-cc)
+# Create the clang++ symlink in the build directory.
+add_custom_target(clang++ ALL
+ ${CMAKE_COMMAND} -E create_symlink
+ "${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang"
+ "${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang++"
+ DEPENDS clang)
+
install(TARGETS clang
RUNTIME DESTINATION bin)
+
+# Create the clang++ symlink at installation time.
+install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink \"${CMAKE_INSTALL_PREFIX}/bin/clang\" \"${CMAKE_INSTALL_PREFIX}/bin/clang++\")")
More information about the cfe-commits
mailing list