From 7c92b94bc1e4c30e441ff3fd35169931cd11cfa6 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Sun, 4 Dec 2011 02:48:01 +0100 Subject: [PATCH] Use Cg from Externals if it is not found systemwide. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e870304dc4..e28cc901d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -371,6 +371,10 @@ else() endif(NOT GLEW_FOUND) check_lib(CG Cg Cg/cg.h) + if(NOT CG_FOUND) + message("Shared Cg not found, falling back to the static library") + include_directories(Externals) + endif(NOT CG_FOUND) check_lib(CGGL CgGL Cg/cgGL.h) endif()