diff options
author | Ken Martin <ken.martin@kitware.com> | 2004-01-02 15:23:20 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2004-01-02 15:23:20 (GMT) |
commit | 02d253c59ed0cbcb15f0714148cbe0fbc01a254f (patch) | |
tree | 8f3faab1ecbf739a8d4c61eda034abc54ebf2d5b /Modules/Dart.cmake | |
parent | 25b0dbf608843aeb010e00cbe4d4ddadfbc31aa0 (diff) | |
download | CMake-02d253c59ed0cbcb15f0714148cbe0fbc01a254f.zip CMake-02d253c59ed0cbcb15f0714148cbe0fbc01a254f.tar.gz CMake-02d253c59ed0cbcb15f0714148cbe0fbc01a254f.tar.bz2 |
fix for multiple nexted projects
Diffstat (limited to 'Modules/Dart.cmake')
-rw-r--r-- | Modules/Dart.cmake | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake index 718dba4..a31abec 100644 --- a/Modules/Dart.cmake +++ b/Modules/Dart.cmake @@ -269,10 +269,20 @@ IF(BUILD_TESTING) # # add testing targets - FOREACH(mode Experimental Nightly Continuous NightlyMemoryCheck) - ADD_CUSTOM_TARGET(${mode} ${CMAKE_CTEST_COMMAND} -D ${mode}) - ENDFOREACH(mode) - + IF(${CMAKE_MAKE_PROGRAM} MATCHES make) + FOREACH(mode Experimental Nightly Continuous NightlyMemoryCheck) + ADD_CUSTOM_TARGET(${mode} ${CMAKE_CTEST_COMMAND} -D ${mode}) + ENDFOREACH(mode) + ELSE(${CMAKE_MAKE_PROGRAM} MATCHES make) + # for IDE only add them once for nested projects + IF (NOT DART_COMMON_TARGETS_ADDED) + FOREACH(mode Experimental Nightly Continuous NightlyMemoryCheck) + ADD_CUSTOM_TARGET(${mode} ${CMAKE_CTEST_COMMAND} -D ${mode}) + ENDFOREACH(mode) + SET (DART_COMMON_TARGETS_ADDED 1) + ENDIF (NOT DART_COMMON_TARGETS_ADDED) + ENDIF(${CMAKE_MAKE_PROGRAM} MATCHES make) + # for non IDE based builds nmake and make # add all these extra targets |