cmake: Subprojects support CMAKE_PREFIX_PATH (fixes #7249)
parent
5f8d89b707
commit
0332d7e350
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