diff options
author | Timofey <t.danshin@corp.mail.ru> | 2016-11-03 18:34:24 +0300 |
---|---|---|
committer | Timofey <t.danshin@corp.mail.ru> | 2016-11-09 14:20:06 +0300 |
commit | 14a9cea834027fcd1c0131b13f61c0f42f6439b9 (patch) | |
tree | a13d3ed28ccbe37e58c21119e7348e8c5ee72707 /CMakeLists.txt | |
parent | 2ec8f5f71fee1f199a702c179eb5d29b1f5806ef (diff) |
Added project declarations to subprojects
Replaced set with append
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ae30eb4cf6..5141250c06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,17 @@ function(omim_link_libraries target) endif() endfunction() +function(append VAR) + set(${VAR} ${${VAR}} ${ARGN} PARENT_SCOPE) +endfunction() + +macro(check_pybindings) + if (NOT PYBINDINGS) + message("Skipping " + ${PROJECT_NAME} + " because the PYBINDINGS variale is not set or is set to FALSE") + return() + endif() +endmacro() + # End of functions for subdirectories # Include subdirectories |