summaryrefslogtreecommitdiff
path: root/Modules/Findosg_functions.cmake
diff options
context:
space:
mode:
authorPhilip Lowman <philip@yhbt.com>2009-01-30 20:09:16 -0500
committerPhilip Lowman <philip@yhbt.com>2009-01-30 20:09:16 -0500
commit78bbf5a0de764b79317a3599bc2da57cb90dd355 (patch)
tree874e6fee097ad270984ec8885ec99bcf4ff1bfcf /Modules/Findosg_functions.cmake
parent4b45824294258d91ba9cc8d9bf9d0b9310dbf1fa (diff)
downloadcmake-78bbf5a0de764b79317a3599bc2da57cb90dd355.tar.gz
ENH: Added FindOpenSceneGraph.cmake which is intended to wrap any of the existing Findosg* modules (or even user specified modules in CMAKE_MODULE_PATH) and aggregate the include dirs & libraries while providing a COMPONENT frontend and version checking (Fixes Issue #6973). Also added a note to Findosg.cmake to refer new users to the module.
Diffstat (limited to 'Modules/Findosg_functions.cmake')
-rw-r--r--Modules/Findosg_functions.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/Findosg_functions.cmake b/Modules/Findosg_functions.cmake
index 6991136244..128be376f4 100644
--- a/Modules/Findosg_functions.cmake
+++ b/Modules/Findosg_functions.cmake
@@ -83,8 +83,9 @@ endfunction(OSG_FIND_LIBRARY module library)
# OSG_MARK_AS_ADVANCED
# Just a convenience function for calling MARK_AS_ADVANCED
#
-function(OSG_MARK_AS_ADVANCED module)
- mark_as_advanced(${module}_INCLUDE_DIR)
- mark_as_advanced(${module}_LIBRARY)
- mark_as_advanced(${module}_LIBRARY_DEBUG)
+function(OSG_MARK_AS_ADVANCED _module)
+ string(TOUPPER ${_module} _module_UC)
+ mark_as_advanced(${_module_UC}_INCLUDE_DIR)
+ mark_as_advanced(${_module_UC}_LIBRARY)
+ mark_as_advanced(${_module_UC}_LIBRARY_DEBUG)
endfunction()