aboutsummaryrefslogtreecommitdiff
path: root/test cases/cmake
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-06-05 13:42:39 +0200
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-06-12 15:50:05 +0000
commit0332d7e35006afa78afb5e4b4f4d2ecf9a7ded27 (patch)
tree61541d66aea8dccc0592fefa55872e893c05f57a /test cases/cmake
parent5f8d89b7077a2141c8251c4162c41f6e01847ebd (diff)
downloadmeson-0332d7e35006afa78afb5e4b4f4d2ecf9a7ded27.zip
meson-0332d7e35006afa78afb5e4b4f4d2ecf9a7ded27.tar.gz
meson-0332d7e35006afa78afb5e4b4f4d2ecf9a7ded27.tar.bz2
cmake: Subprojects support CMAKE_PREFIX_PATH (fixes #7249)
Diffstat (limited to 'test cases/cmake')
-rw-r--r--test cases/cmake/7 cmake options/subprojects/cmOpts/CMakeLists.txt5
-rw-r--r--test cases/cmake/7 cmake options/test.json9
2 files changed, 14 insertions, 0 deletions
diff --git a/test cases/cmake/7 cmake options/subprojects/cmOpts/CMakeLists.txt b/test cases/cmake/7 cmake options/subprojects/cmOpts/CMakeLists.txt
index 62b5990..873b9b3 100644
--- a/test cases/cmake/7 cmake options/subprojects/cmOpts/CMakeLists.txt
+++ b/test cases/cmake/7 cmake options/subprojects/cmOpts/CMakeLists.txt
@@ -1,5 +1,10 @@
cmake_minimum_required(VERSION 3.7)
+project(testPro)
if(NOT "${SOME_CMAKE_VAR}" STREQUAL "something")
message(FATAL_ERROR "Setting the CMake var failed")
endif()
+
+if(NOT "${CMAKE_PREFIX_PATH}" STREQUAL "val1;val2")
+ message(FATAL_ERROR "Setting the CMAKE_PREFIX_PATH failed '${CMAKE_PREFIX_PATH}'")
+endif()
diff --git a/test cases/cmake/7 cmake options/test.json b/test cases/cmake/7 cmake options/test.json
new file mode 100644
index 0000000..046e2ee
--- /dev/null
+++ b/test cases/cmake/7 cmake options/test.json
@@ -0,0 +1,9 @@
+{
+ "matrix": {
+ "options": {
+ "cmake_prefix_path": [
+ { "val": ["val1", "val2"] }
+ ]
+ }
+ }
+}