Skip to content
Snippets Groups Projects
Commit 064c415d authored by Ben Boeckel's avatar Ben Boeckel
Browse files

test: add test for PARENT_SCOPE behavior

Test code courtesy of Alex Merry <alex.merry@kde.org>.
parent f25a301f
No related branches found
No related tags found
No related merge requests found
^before PARENT_SCOPE blah=value2
after PARENT_SCOPE blah=value2
in parent scope, blah=value2$
cmake_minimum_required(VERSION 3.0)
project(Minimal NONE)
function(test_set)
set(blah "value2")
message("before PARENT_SCOPE blah=${blah}")
set(blah ${blah} PARENT_SCOPE)
message("after PARENT_SCOPE blah=${blah}")
endfunction()
set(blah value1)
test_set()
message("in parent scope, blah=${blah}")
include(RunCMake)
run_cmake(PARENT_SCOPE)
run_cmake(ParentPulling)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment