cmake: Subprojects support CMAKE_PREFIX_PATH (fixes #7249)
parent
d487924991
commit
fd1b8b1971
4 changed files with 37 additions and 15 deletions
@ -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() |
||||
|
@ -0,0 +1,9 @@ |
||||
{ |
||||
"matrix": { |
||||
"options": { |
||||
"cmake_prefix_path": [ |
||||
{ "val": ["val1", "val2"] } |
||||
] |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue