diff options
author | Ken Martin <ken.martin@kitware.com> | 2008-03-25 18:37:12 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2008-03-25 18:37:12 (GMT) |
commit | ff90b5efbfe09eaa292224008add07f5b41880df (patch) | |
tree | 104266cf0d16bce79784b8ebbb5e49533ed87d92 /Tests/ExternalOBJ/CMakeLists.txt | |
parent | f0486827d566067749f3bf20fb37dc69ab8d140d (diff) | |
download | CMake-ff90b5efbfe09eaa292224008add07f5b41880df.zip CMake-ff90b5efbfe09eaa292224008add07f5b41880df.tar.gz CMake-ff90b5efbfe09eaa292224008add07f5b41880df.tar.bz2 |
BUG: make test more robust
Diffstat (limited to 'Tests/ExternalOBJ/CMakeLists.txt')
-rw-r--r-- | Tests/ExternalOBJ/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Tests/ExternalOBJ/CMakeLists.txt b/Tests/ExternalOBJ/CMakeLists.txt index 4b8d5e4..3fef135 100644 --- a/Tests/ExternalOBJ/CMakeLists.txt +++ b/Tests/ExternalOBJ/CMakeLists.txt @@ -36,6 +36,7 @@ SET(DIR ${ExternalOBJ_BINARY_DIR}/Object) FILE(GLOB_RECURSE EXTERNAL_OBJECT "${DIR}/external_object*${CMAKE_CXX_OUTPUT_EXTENSION}") IF(EXTERNAL_OBJECT) + LIST (GET EXTERNAL_OBJECT 0 EXTERNAL_OBJECT) MESSAGE("Found \"${EXTERNAL_OBJECT}\".") ELSE(EXTERNAL_OBJECT) MESSAGE(FATAL_ERROR "Could not find external object.") @@ -44,8 +45,6 @@ ENDIF(EXTERNAL_OBJECT) # Test creation of external objects by custom commands. SET(CUSTOM_OBJECT ${CMAKE_CURRENT_BINARY_DIR}/custom_object${CMAKE_C_OUTPUT_EXTENSION}) -MESSAGE("Debugging info: " - "${CMAKE_COMMAND} -E copy ${EXTERNAL_OBJECT} ${CUSTOM_OBJECT}") ADD_CUSTOM_COMMAND( OUTPUT ${CUSTOM_OBJECT} COMMAND ${CMAKE_COMMAND} -E copy ${EXTERNAL_OBJECT} ${CUSTOM_OBJECT} |