r259873 - [CMake] One more try to make CMake clean up after itself
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 4 19:59:08 PST 2016
Author: cbieneman
Date: Thu Feb 4 21:59:08 2016
New Revision: 259873
URL: http://llvm.org/viewvc/llvm-project?rev=259873&view=rev
Log:
[CMake] One more try to make CMake clean up after itself
Seriously... CMake... You're on my list...
Modified:
cfe/trunk/CMakeLists.txt
cfe/trunk/tools/driver/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=259873&r1=259872&r2=259873&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Thu Feb 4 21:59:08 2016
@@ -586,6 +586,10 @@ if( CLANG_INCLUDE_DOCS )
add_subdirectory(docs)
endif()
+if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/clang.order")
+ file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/clang.order")
+endif()
+
if(CLANG_ORDER_FILE STREQUAL "${CMAKE_CURRENT_BINARY_DIR}/clang.order")
unset(CLANG_ORDER_FILE CACHE)
unset(CLANG_ORDER_FILE)
Modified: cfe/trunk/tools/driver/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/CMakeLists.txt?rev=259873&r1=259872&r2=259873&view=diff
==============================================================================
--- cfe/trunk/tools/driver/CMakeLists.txt (original)
+++ cfe/trunk/tools/driver/CMakeLists.txt Thu Feb 4 21:59:08 2016
@@ -87,7 +87,7 @@ if (APPLE)
set(TOOL_INFO_BUILD_VERSION)
endif()
-if(CLANG_ORDER_FILE)
+if(CLANG_ORDER_FILE AND EXISTS CLANG_ORDER_FILE)
target_link_libraries(clang "-Wl,-order_file,${CLANG_ORDER_FILE}")
endif()
More information about the cfe-commits
mailing list