fix for multiple nexted projects
This commit is contained in:
parent
25b0dbf608
commit
02d253c59e
|
@ -269,9 +269,19 @@ IF(BUILD_TESTING)
|
||||||
#
|
#
|
||||||
|
|
||||||
# add testing targets
|
# add testing targets
|
||||||
FOREACH(mode Experimental Nightly Continuous NightlyMemoryCheck)
|
IF(${CMAKE_MAKE_PROGRAM} MATCHES make)
|
||||||
ADD_CUSTOM_TARGET(${mode} ${CMAKE_CTEST_COMMAND} -D ${mode})
|
FOREACH(mode Experimental Nightly Continuous NightlyMemoryCheck)
|
||||||
ENDFOREACH(mode)
|
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
|
# for non IDE based builds nmake and make
|
||||||
|
|
Loading…
Reference in New Issue