diff options
author | Vegard Sjonfjell <vegard@yahoo-inc.com> | 2016-06-17 13:53:31 +0200 |
---|---|---|
committer | Vegard Sjonfjell <vegard@yahoo-inc.com> | 2016-06-17 13:53:31 +0200 |
commit | 3ef3b6a8566e528748ca5c250aada0c0bffd0e4d (patch) | |
tree | 408c5c13e69fe41037fa27a1d7d5087f11c52e3e /functions.cmake | |
parent | b3e262f7c39459f920b91f5576b2bc00f635be6b (diff) |
Use macros due to scoping
Diffstat (limited to 'functions.cmake')
-rw-r--r-- | functions.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.cmake b/functions.cmake index 8047a170320..8bd0e3a97d1 100644 --- a/functions.cmake +++ b/functions.cmake @@ -433,7 +433,7 @@ function(__add_test_target_to_module TARGET) set_property(GLOBAL APPEND PROPERTY MODULE_${MODULE_NAME}_TEST_TARGETS ${TARGET}) endfunction() -function(__handle_test_targets) +macro(__handle_test_targets) # If this is a test executable, add it to the test target for this module # If building of unit tests is not specified, exclude this target from the all target if(ARG_TEST) @@ -443,7 +443,7 @@ function(__handle_test_targets) set_target_properties(${TARGET} PROPERTIES EXCLUDE_FROM_ALL TRUE) endif() endif() -endfunction() +endmacro() function(__create_module_targets PROPERTY_POSTFIX TARGET_POSTFIX) get_property(VESPA_MODULES GLOBAL PROPERTY VESPA_MODULES) |