diff options
author | Brad King <brad.king@kitware.com> | 2007-03-12 16:44:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-12 16:44:59 (GMT) |
commit | ff220755e2b087df22d8b0ab61e3747a3d76cdc3 (patch) | |
tree | f47124d87b686a2dc09470f99d29791742b768d8 /Tests/PrecompiledHeader/CMakeLists.txt | |
parent | 03f3411c4f56f7cd952a971206e2c5c20a027860 (diff) | |
download | CMake-ff220755e2b087df22d8b0ab61e3747a3d76cdc3.zip CMake-ff220755e2b087df22d8b0ab61e3747a3d76cdc3.tar.gz CMake-ff220755e2b087df22d8b0ab61e3747a3d76cdc3.tar.bz2 |
BUG: Clean the pch during make clean so that the test passes when run more than once.
Diffstat (limited to 'Tests/PrecompiledHeader/CMakeLists.txt')
-rw-r--r-- | Tests/PrecompiledHeader/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/PrecompiledHeader/CMakeLists.txt b/Tests/PrecompiledHeader/CMakeLists.txt index 14bd277..0e19067 100644 --- a/Tests/PrecompiledHeader/CMakeLists.txt +++ b/Tests/PrecompiledHeader/CMakeLists.txt @@ -47,6 +47,12 @@ ELSE(PCH_USE_TARGET) SET(PCH_TARGETS foo) ENDIF(PCH_USE_TARGET) +# Add the PCH to the list of files to clean. It is created as a +# side-effect so CMake does not know about it. +SET_DIRECTORY_PROPERTIES(PROPERTIES + ADDITIONAL_MAKE_CLEAN_FILES ${PCH_DIR}/foo_precompiled.pch + ) + # Setup flags on the two targets to create and use the precompiled header. SET_TARGET_PROPERTIES(${PCH_TARGETS} PROPERTIES COMPILE_FLAGS "/Yufoo_precompiled.h /FIfoo_precompiled.h ${PCH_FILE}") |