diff options
author | Brad King <brad.king@kitware.com> | 2015-05-12 13:12:43 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-05-12 13:12:43 (GMT) |
commit | 55fe56444f134e676a0b9a54d72dbdb85b573a49 (patch) | |
tree | 7f51a6bfeee921e744e1b6dc1a9389879eadc1e2 /Tests/RunCMake/ExternalProject/SourceEmpty.cmake | |
parent | cca3bbde98de7954ebd3bca1966c92d931fe0dab (diff) | |
parent | dcb188363d5faba80664c17e9a4713bbd5c0b372 (diff) | |
download | CMake-55fe56444f134e676a0b9a54d72dbdb85b573a49.zip CMake-55fe56444f134e676a0b9a54d72dbdb85b573a49.tar.gz CMake-55fe56444f134e676a0b9a54d72dbdb85b573a49.tar.bz2 |
Merge topic 'ExternalProject-improve-missing-source-error'
dcb18836 ExternalProject: Improve error when SOURCE_DIR is missing (#15560)
Diffstat (limited to 'Tests/RunCMake/ExternalProject/SourceEmpty.cmake')
-rw-r--r-- | Tests/RunCMake/ExternalProject/SourceEmpty.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalProject/SourceEmpty.cmake b/Tests/RunCMake/ExternalProject/SourceEmpty.cmake new file mode 100644 index 0000000..db746e9 --- /dev/null +++ b/Tests/RunCMake/ExternalProject/SourceEmpty.cmake @@ -0,0 +1,5 @@ +include(ExternalProject) +set(source_dir "${CMAKE_CURRENT_BINARY_DIR}/SourceEmpty") +file(REMOVE_RECURSE "${source_dir}") +file(MAKE_DIRECTORY "${source_dir}") +ExternalProject_Add(MyProj SOURCE_DIR "${source_dir}") |