Copy DartConfiguration.tcl, needed for make memcheck

This commit is contained in:
Gilles Peskine 2018-04-05 15:57:56 +02:00
parent be038366ea
commit c33c7c8363

View file

@ -192,4 +192,8 @@ endif()
# Make scripts needed for testing available in an out-of-source build. # Make scripts needed for testing available in an out-of-source build.
if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
link_to_source(scripts) link_to_source(scripts)
# Copy (don't link) DartConfiguration.tcl, needed for memcheck, to
# keep things simple with the sed commands in the memcheck target.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/DartConfiguration.tcl
${CMAKE_CURRENT_BINARY_DIR}/DartConfiguration.tcl COPYONLY)
endif() endif()