From 24dd515f300b92a48247211589e2f2951b33b14c Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 13 Feb 2015 12:16:38 +0000 Subject: [CMake] Fix creation of example directory when copying support files. This was a regression introduced in svn r 10573 that affects new builds, when the target directory for test files (bin/examples) doesn't exist yet. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 45585b40a..d0ad163f9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -108,7 +108,10 @@ endif(FLTK_HAVE_CAIRO) # - demo.menu: help (help-test.html) can't find its images (not copied) # - maybe more ... -configure_file(demo.menu ${EXECUTABLE_OUTPUT_PATH} COPYONLY) +# use a target filename to make sure the target directory gets created +configure_file(demo.menu ${EXECUTABLE_OUTPUT_PATH}/demo.menu COPYONLY) + +# use target directory only to avoid redundancy configure_file(rgb.txt ${EXECUTABLE_OUTPUT_PATH} COPYONLY) configure_file(help-test.html ${EXECUTABLE_OUTPUT_PATH} COPYONLY) configure_file(browser.cxx ${EXECUTABLE_OUTPUT_PATH} COPYONLY) -- cgit v1.2.3