From 8a955cb4d26ae27ecbeab82af8126cb12de52445 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 3 Nov 2009 10:05:29 +0000 Subject: [PATCH] add to config.h search path --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c85e8496b..9be0b85f98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -616,7 +616,8 @@ if(ENABLE_OCC) elseif(MSVC) add_definitions(-DWNT) endif(CYGWIN) - find_path(OCC_CONFIG_H "config.h" PATHS ${OCC_INC} NO_DEFAULT_PATH) + find_path(OCC_CONFIG_H "config.h" PATHS ${OCC_INC} ${OCC_CONFIG_H_PATH} + NO_DEFAULT_PATH) if(NOT OCC_CONFIG_H) add_definitions(-DHAVE_NO_OCC_CONFIG_H) endif(NOT OCC_CONFIG_H) -- GitLab