summaryrefslogtreecommitdiffstats
path: root/Modules/Findosg_functions.cmake
diff options
context:
space:
mode:
authorPhilip Lowman <philip@yhbt.com>2009-01-30 19:29:26 (GMT)
committerPhilip Lowman <philip@yhbt.com>2009-01-30 19:29:26 (GMT)
commit6ccd60dee340252fa55937a5d7360585e18315d3 (patch)
tree631ab81edf691a3fb8dd1d5b7d99afb253bec394 /Modules/Findosg_functions.cmake
parent25325c8f4d9e77f4068a94780646da62b2b2a591 (diff)
downloadCMake-6ccd60dee340252fa55937a5d7360585e18315d3.zip
CMake-6ccd60dee340252fa55937a5d7360585e18315d3.tar.gz
CMake-6ccd60dee340252fa55937a5d7360585e18315d3.tar.bz2
ENH: Added a mark_as_advanced() wrapper function.
Diffstat (limited to 'Modules/Findosg_functions.cmake')
-rw-r--r--Modules/Findosg_functions.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/Findosg_functions.cmake b/Modules/Findosg_functions.cmake
index c4af81a..65ad03d 100644
--- a/Modules/Findosg_functions.cmake
+++ b/Modules/Findosg_functions.cmake
@@ -88,3 +88,13 @@ function(OSG_FIND_LIBRARY module library)
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)
+endfunction()