cmake: add PATH logic to preliminary dep check (fixes #8133)
parent
a8c138ebc1
commit
8f1d9bb7b0
7 changed files with 35 additions and 5 deletions
@ -0,0 +1,9 @@ |
||||
find_package(ZLIB) |
||||
|
||||
if(ZLIB_FOUND OR ZLIB_Found) |
||||
set(cmMesonTestF3_FOUND ON) |
||||
set(cmMesonTestF3_LIBRARIES ${ZLIB_LIBRARY}) |
||||
set(cmMesonTestF3_INCLUDE_DIRS ${ZLIB_INCLUDE_DIR}) |
||||
else() |
||||
set(cmMesonTestF3_FOUND OFF) |
||||
endif() |
@ -1,5 +1,6 @@ |
||||
{ |
||||
"env": { |
||||
"CMAKE_PREFIX_PATH": "@ROOT@/cmake_fake1;@ROOT@/cmake_fake2:@ROOT@/cmake_pref_env" |
||||
"CMAKE_PREFIX_PATH": "@ROOT@/cmake_fake1;@ROOT@/cmake_fake2:@ROOT@/cmake_pref_env", |
||||
"PATH": "@ROOT@/cmake_fake3/bin:@PATH@" |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue