You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
627 B
34 lines
627 B
5 years ago
|
list(PREPEND test)
|
||
|
if(test)
|
||
|
message(FATAL_ERROR "failed")
|
||
|
endif()
|
||
|
|
||
|
list(PREPEND test satu)
|
||
|
if(NOT test STREQUAL "satu")
|
||
|
message(FATAL_ERROR "failed")
|
||
|
endif()
|
||
|
|
||
|
list(PREPEND test dua)
|
||
|
if(NOT test STREQUAL "dua;satu")
|
||
|
message(FATAL_ERROR "failed")
|
||
|
endif()
|
||
|
|
||
|
list(PREPEND test tiga)
|
||
|
if(NOT test STREQUAL "tiga;dua;satu")
|
||
|
message(FATAL_ERROR "failed")
|
||
|
endif()
|
||
|
|
||
|
# Scope test
|
||
|
function(foo)
|
||
|
list(PREPEND test empat)
|
||
|
if(NOT test STREQUAL "empat;tiga;dua;satu")
|
||
|
message(FATAL_ERROR "failed")
|
||
|
endif()
|
||
|
endfunction()
|
||
|
|
||
|
foo()
|
||
|
|
||
|
if(NOT test STREQUAL "tiga;dua;satu")
|
||
|
message(FATAL_ERROR "failed")
|
||
|
endif()
|