[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.36.2.4 1.36.2.5
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Aug 6 17:04:23 EDT 2008
Update of /cvsroot/CMake/CMake/Tests/CustomCommand
In directory public:/mounts/ram/cvs-serv12802/Tests/CustomCommand
Modified Files:
Tag: CMake-2-6
CMakeLists.txt
Log Message:
ENH: merge in fixes from main tree 2.6.2 RC 1
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CustomCommand/CMakeLists.txt,v
retrieving revision 1.36.2.4
retrieving revision 1.36.2.5
diff -C 2 -d -r1.36.2.4 -r1.36.2.5
*** CMakeLists.txt 13 Jun 2008 12:55:18 -0000 1.36.2.4
--- CMakeLists.txt 6 Aug 2008 21:04:20 -0000 1.36.2.5
***************
*** 84,87 ****
--- 84,97 ----
INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR})
+ # Test generation of a file to the build tree without full path. As
+ # of CMake 2.6 custom command outputs specified by relative path go in
+ # the build tree.
+ ADD_CUSTOM_COMMAND(
+ OUTPUT doc1.txt
+ COMMAND ${CMAKE_COMMAND} -E echo "Example Document Target" > doc1.txt
+ DEPENDS doc1.tex
+ VERBATIM
+ )
+
# Add a custom target to drive generation of doc1.h.
ADD_CUSTOM_TARGET(TDocument ALL
More information about the Cmake-commits
mailing list