diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-10-23 12:42:02 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-10-23 13:49:51 (GMT) |
commit | ae7c81c6226cea5ae2fb5af53fa0d5a7b4bd3990 (patch) | |
tree | 81d9c34348593c5c04e6f6842fb3bbeab1209f9f /Tests | |
parent | d11338dba11dda1d9887ab9a2c174a87a024faf6 (diff) | |
download | CMake-ae7c81c6226cea5ae2fb5af53fa0d5a7b4bd3990.zip CMake-ae7c81c6226cea5ae2fb5af53fa0d5a7b4bd3990.tar.gz CMake-ae7c81c6226cea5ae2fb5af53fa0d5a7b4bd3990.tar.bz2 |
ExternalData: add support for suppressing progress during the build
During CI builds (at least), download progress is just noise. Allow it
to be suppressed.
Default to `OFF` for Ninja due to the tool's behavior of not showing
output until a command is complete (which makes any progress reporting
of little use) and `ON` otherwise.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/ExternalData/BadArguments-stderr.txt | 7 | ||||
-rw-r--r-- | Tests/RunCMake/ExternalData/BadArguments.cmake | 5 | ||||
-rw-r--r-- | Tests/RunCMake/ExternalData/RunCMakeTest.cmake | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalData/BadArguments-stderr.txt b/Tests/RunCMake/ExternalData/BadArguments-stderr.txt new file mode 100644 index 0000000..44efe7e --- /dev/null +++ b/Tests/RunCMake/ExternalData/BadArguments-stderr.txt @@ -0,0 +1,7 @@ +CMake Warning \(dev\) at .*/Modules/ExternalData.cmake:[0-9]+ \(message\): + Ignoring unrecognized arguments passed to ExternalData_add_target: + `UNKNOWN_ARGUMENT` +Call Stack \(most recent call first\): + BadArguments.cmake:[0-9]+ \(ExternalData_Add_Target\) + CMakeLists.txt:[0-9]+ \(include\) +This warning is for project developers. Use -Wno-dev to suppress it. diff --git a/Tests/RunCMake/ExternalData/BadArguments.cmake b/Tests/RunCMake/ExternalData/BadArguments.cmake new file mode 100644 index 0000000..dad0007 --- /dev/null +++ b/Tests/RunCMake/ExternalData/BadArguments.cmake @@ -0,0 +1,5 @@ +include(ExternalData) +set(ExternalData_URL_TEMPLATES + "file:///path/to/%(algo)/%(hash)" + ) +ExternalData_Add_Target(Data UNKNOWN_ARGUMENT) diff --git a/Tests/RunCMake/ExternalData/RunCMakeTest.cmake b/Tests/RunCMake/ExternalData/RunCMakeTest.cmake index b5ab22d..b4cc95e 100644 --- a/Tests/RunCMake/ExternalData/RunCMakeTest.cmake +++ b/Tests/RunCMake/ExternalData/RunCMakeTest.cmake @@ -2,6 +2,7 @@ include(RunCMake) run_cmake(BadAlgoMap1) run_cmake(BadAlgoMap2) +run_cmake(BadArguments) run_cmake(BadCustom1) run_cmake(BadCustom2) run_cmake(BadCustom3) |