diff options
author | Brad King <brad.king@kitware.com> | 2006-10-16 19:18:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-16 19:18:03 (GMT) |
commit | 30235517f81ed7ef8ff8e58685e786da472bf0d6 (patch) | |
tree | c8c2162c4b697b476e2de36b4153d22fbfe0d274 /Tests/OutOfSource | |
parent | 49bf0b9e3d48dd650daa924a238fccc1bc3324d7 (diff) | |
download | CMake-30235517f81ed7ef8ff8e58685e786da472bf0d6.zip CMake-30235517f81ed7ef8ff8e58685e786da472bf0d6.tar.gz CMake-30235517f81ed7ef8ff8e58685e786da472bf0d6.tar.bz2 |
BUG: Need to collapse path argument to get_directory_property. This addresses bug#3847.
Diffstat (limited to 'Tests/OutOfSource')
-rw-r--r-- | Tests/OutOfSource/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/OutOfSource/CMakeLists.txt b/Tests/OutOfSource/CMakeLists.txt index a053f14..265d47d 100644 --- a/Tests/OutOfSource/CMakeLists.txt +++ b/Tests/OutOfSource/CMakeLists.txt @@ -4,6 +4,10 @@ project (OutOfSource) add_subdirectory(SubDir) get_directory_property(ANIMAL DIRECTORY OutOfSourceSubdir DEFINITION WEASELS) +get_directory_property(ANIMALREL DIRECTORY SubDir/../OutOfSourceSubdir DEFINITION WEASELS) +IF(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}") + MESSAGE(FATAL_ERROR "GET_DIRECTORY_PROPERTY does not seem to collapse paths.") +ENDIF(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}") configure_file( ${OutOfSource_SOURCE_DIR}/testdp.h.in |