diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-15 20:51:18 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-15 20:51:18 +0000 |
commit | 232ed2d3733b497f3a1b7a392eb0c9e60cfed228 (patch) | |
tree | 124e381acc4af676c7abc98600e3c38e77204fb7 /tools/llvm-config | |
parent | 2c688da09edddec74fa19fe3343f61a477b0b85a (diff) |
CMake: Removed some cruft.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-config')
-rw-r--r-- | tools/llvm-config/CMakeLists.txt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt index eb78840df0..3f30603419 100644 --- a/tools/llvm-config/CMakeLists.txt +++ b/tools/llvm-config/CMakeLists.txt @@ -10,8 +10,6 @@ set(PREFIX ${LLVM_BINARY_DIR}) # TODO: Root for `make install'. execute_process(COMMAND date OUTPUT_VARIABLE LLVM_CONFIGTIME OUTPUT_STRIP_TRAILING_WHITESPACE) -set(abs_top_srcdir ${LLVM_MAIN_SRC_DIR}) -set(abs_top_builddir ${LLVM_BINARY_DIR}) # LLVM_ON_UNIX and LLVM_ON_WIN32 already set. # those are set to blank by `autoconf' on MinGW, so it seems they are not required: #set(LLVMGCCDIR "") @@ -59,10 +57,6 @@ set(FINAL_LIBDEPS ${CMAKE_CURRENT_BINARY_DIR}/FinalLibDeps.txt) set(LLVM_CONFIG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/llvm-config) set(LLVM_CONFIG_IN ${CMAKE_CURRENT_BINARY_DIR}/llvm-config.in) -# set(LIBDEPS LibDeps.txt) -# set(LIBDEPS_TMP LibDeps.txt.tmp) -# set(FINAL_LIBDEPS FinalLibDeps.txt) - if( CMAKE_CROSSCOMPILING ) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY) endif() @@ -79,8 +73,9 @@ add_custom_command(OUTPUT ${LIBDEPS_TMP} COMMENT "Regenerating ${LIBDEPS_TMP}") add_custom_command(OUTPUT ${LIBDEPS} - COMMAND cmp -s ${LIBDEPS_TMP} ${LIBDEPS} || \( cp ${LIBDEPS_TMP} ${LIBDEPS} && echo "Updated ${LIBDEPS} because dependencies changed" \) - DEPENDS ${LIBDEPS_TMP}) + COMMAND ${CMAKE_COMMAND} -E copy_if_different ${LIBDEPS_TMP} ${LIBDEPS} + DEPENDS ${LIBDEPS_TMP} + COMMENT "Updated ${LIBDEPS} because dependencies changed") add_custom_command(OUTPUT ${FINAL_LIBDEPS} COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/find-cycles.pl < ${LIBDEPS} > ${FINAL_LIBDEPS} || rm -f ${FINAL_LIBDEPS} |