[cmake-commits] king committed CMakeLists.txt 1.3 1.4

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Oct 16 15:18:05 EDT 2006


Update of /cvsroot/CMake/CMake/Tests/OutOfSource
In directory public:/mounts/ram/cvs-serv6255/Tests/OutOfSource

Modified Files:
	CMakeLists.txt 
Log Message:
BUG: Need to collapse path argument to get_directory_property.  This addresses bug#3847.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/OutOfSource/CMakeLists.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CMakeLists.txt	13 Sep 2005 14:40:38 -0000	1.3
+++ CMakeLists.txt	16 Oct 2006 19:18:03 -0000	1.4
@@ -4,6 +4,10 @@
 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



More information about the Cmake-commits mailing list