Ensure default testfiles directory for working copy exists
This commit is contained in:
parent
684e97ce2a
commit
9744efda70
|
@ -310,6 +310,9 @@ if(CPP_UNIT_LIB OR META_NO_CPP_UNIT)
|
|||
# add a file called "srcdirref" to the build directory; this file contains the path of the sources so tests can easily find test files contained in the source directory
|
||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/srcdirref" "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
# ensure the directory "testfiles" exists in the build directory; tests will create the directory for working copies of testfiles there by default
|
||||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/testfiles")
|
||||
|
||||
set(META_HAVE_TESTS YES)
|
||||
|
||||
else()
|
||||
|
|
Loading…
Reference in New Issue