equal
deleted
inserted
replaced
13 if(NOT ${_PKG_NAME_UP}_FOUND) |
13 if(NOT ${_PKG_NAME_UP}_FOUND) |
14 message(SEND_ERROR "Missing ${_PKG_NAME}! Rerun cmake with -D${_VAR_NAME}=1 to build without it.") |
14 message(SEND_ERROR "Missing ${_PKG_NAME}! Rerun cmake with -D${_VAR_NAME}=1 to build without it.") |
15 endif(NOT ${_PKG_NAME_UP}_FOUND) |
15 endif(NOT ${_PKG_NAME_UP}_FOUND) |
16 endmacro(find_package_or_disable _PKG_NAME _VAR_NAME) |
16 endmacro(find_package_or_disable _PKG_NAME _VAR_NAME) |
17 |
17 |
|
18 macro(find_package_or_disable_msg _PKG_NAME _VAR_NAME _MSG) |
|
19 if(NOT ${_VAR_NAME}) |
|
20 find_package_or_disable(${_PKG_NAME} ${_VAR_NAME}) |
|
21 else(NOT ${_VAR_NAME}) |
|
22 message(STATUS "${_PKG_NAME} disabled. ${_MSG}") |
|
23 string(TOUPPER ${_PKG_NAME} _PKG_NAME_UP) |
|
24 set(${_PKG_NAME_UP}_FOUND false) |
|
25 endif(NOT ${_VAR_NAME}) |
|
26 endmacro(find_package_or_disable_msg _PKG_NAME _VAR_NAME _MSG) |
|
27 |
|
28 |
18 #TODO: find_package_or_bundle |
29 #TODO: find_package_or_bundle |
19 |
30 |