Skip to content
Snippets Groups Projects
Commit 5ba1f13b authored by Chris Bieneman's avatar Chris Bieneman
Browse files

[CMake] One more try to make CMake clean up after itself

Seriously... CMake... You're on my list...

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259873 91177308-0d34-0410-b5e6-96231b3b80d8
parent 23347e59
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment