summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_path/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorSylvain Joubert <joubert.sy@gmail.com>2020-03-06 13:30:01 (GMT)
committerSylvain Joubert <joubert.sy@gmail.com>2020-03-06 15:40:26 (GMT)
commitdc008095961fe4c2478d575931e8caf6c9bff92d (patch)
treed468b514eca32bf28351b91f41628ab8be64ca36 /Tests/RunCMake/find_path/RunCMakeTest.cmake
parentcc070e66cd9bd0d4e0ce56ad9dd307dbb854e61f (diff)
downloadCMake-dc008095961fe4c2478d575931e8caf6c9bff92d.zip
CMake-dc008095961fe4c2478d575931e8caf6c9bff92d.tar.gz
CMake-dc008095961fe4c2478d575931e8caf6c9bff92d.tar.bz2
find_*: Add support for REQUIRED keyword
In the same spirit as the REQUIRED keyword on find_package, this will stop cmake execution with an error on a failed find_program, find_file, find_path or find_library.
Diffstat (limited to 'Tests/RunCMake/find_path/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/find_path/RunCMakeTest.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_path/RunCMakeTest.cmake b/Tests/RunCMake/find_path/RunCMakeTest.cmake
index ed55f51..5c919bb 100644
--- a/Tests/RunCMake/find_path/RunCMakeTest.cmake
+++ b/Tests/RunCMake/find_path/RunCMakeTest.cmake
@@ -3,6 +3,7 @@ include(RunCMake)
run_cmake(EmptyOldStyle)
run_cmake(FromPATHEnv)
run_cmake(PrefixInPATH)
+run_cmake(Required)
if(APPLE)
run_cmake(FrameworksWithSubdirs)