blob: 409a0d6a34f1505eef377b00b4a4fbb7582f0514 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
cmake_policy(SET CMP0140 NEW)
function(f)
find_package(foo UNWIND_INCLUDE)
endfunction()
function(g)
set(FUNC_CALLED true)
set(PrimaryUnwind_FOUND false)
return(PROPAGATE func_called PrimaryUnwind_FOUND)
endfunction()
set(RunCMake_TEST_FAILED "Failed to observe side effects of function() calls during unwind")
f()
g()
if(FUNC_CALLED)
set(RunCMake_TEST_FAILED)
endif()
|