summaryrefslogtreecommitdiffstats
path: root/Modules/Findosg_functions.cmake
diff options
context:
space:
mode:
authorPhilip Lowman <philip@yhbt.com>2012-08-18 20:46:08 (GMT)
committerPhilip Lowman <philip@yhbt.com>2012-08-18 20:46:08 (GMT)
commit224b5dea785d20a9054a2b7fb9e737c106084879 (patch)
tree2155c7c8ac161ed6a234fcd35e3f686643cf85e9 /Modules/Findosg_functions.cmake
parent186e9bdc22256039948338d91ab3be02893ab17a (diff)
downloadCMake-224b5dea785d20a9054a2b7fb9e737c106084879.zip
CMake-224b5dea785d20a9054a2b7fb9e737c106084879.tar.gz
CMake-224b5dea785d20a9054a2b7fb9e737c106084879.tar.bz2
FindOpenSceneGraph: CMake variable OSG_DIR influences detection now too
Diffstat (limited to 'Modules/Findosg_functions.cmake')
-rw-r--r--Modules/Findosg_functions.cmake11
1 files changed, 9 insertions, 2 deletions
diff --git a/Modules/Findosg_functions.cmake b/Modules/Findosg_functions.cmake
index 30c0876..e65e858 100644
--- a/Modules/Findosg_functions.cmake
+++ b/Modules/Findosg_functions.cmake
@@ -1,11 +1,12 @@
#
# This CMake file contains two macros to assist with searching for OSG
-# libraries and nodekits.
+# libraries and nodekits. Please see FindOpenSceneGraph.cmake for full
+# documentation.
#
#=============================================================================
# Copyright 2009 Kitware, Inc.
-# Copyright 2009 Philip Lowman <philip@yhbt.com>
+# Copyright 2009-2012 Philip Lowman <philip@yhbt.com>
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
@@ -30,6 +31,8 @@ function(OSG_FIND_PATH module header)
$ENV{OSG_DIR}
$ENV{OSGDIR}
$ENV{OSG_ROOT}
+ ${${module_uc}_DIR}
+ ${OSG_DIR}
PATH_SUFFIXES include
PATHS
/sw # Fink
@@ -54,6 +57,8 @@ function(OSG_FIND_LIBRARY module library)
$ENV{OSG_DIR}
$ENV{OSGDIR}
$ENV{OSG_ROOT}
+ ${${module_uc}_DIR}
+ ${OSG_DIR}
PATH_SUFFIXES lib64 lib
PATHS
/sw # Fink
@@ -70,6 +75,8 @@ function(OSG_FIND_LIBRARY module library)
$ENV{OSG_DIR}
$ENV{OSGDIR}
$ENV{OSG_ROOT}
+ ${${module_uc}_DIR}
+ ${OSG_DIR}
PATH_SUFFIXES lib64 lib
PATHS
/sw # Fink