Skip to content
Snippets Groups Projects
Commit 8aa10911 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Ensure cxxtest output directories are created

Ninja & Visual Studio cope with creating the directories themselves,
however Make does not create them.
Refs #0
parent 325a94d9
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,9 @@ macro(CXXTEST_ADD_TEST _cxxtest_testname) ...@@ -107,6 +107,9 @@ macro(CXXTEST_ADD_TEST _cxxtest_testname)
set (_cxxtest_output_dir ${CMAKE_CURRENT_BINARY_DIR}) set (_cxxtest_output_dir ${CMAKE_CURRENT_BINARY_DIR})
if (CXXTEST_OUTPUT_DIR) if (CXXTEST_OUTPUT_DIR)
set (_cxxtest_output_dir ${CXXTEST_OUTPUT_DIR}) set (_cxxtest_output_dir ${CXXTEST_OUTPUT_DIR})
if ( NOT IS_DIRECTORY "${_cxxtest_output_dir}")
file ( MAKE_DIRECTORY "${_cxxtest_output_dir}" )
endif()
endif() endif()
# determine the cpp filename # determine the cpp filename
set(_cxxtest_real_outfname ${_cxxtest_output_dir}/${_cxxtest_testname}_runner.cpp) set(_cxxtest_real_outfname ${_cxxtest_output_dir}/${_cxxtest_testname}_runner.cpp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment