From 494ba7461490d32068c83317bd44ed659fc27231 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 6 Oct 2009 07:02:30 +0000 Subject: [PATCH] trying to detect opencascade's config.h file --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index acca545a60..bc8b5d48c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -587,8 +587,13 @@ if(ENABLE_OCC) if(CYGWIN) list(APPEND EXTERNAL_LIBRARIES "winspool") elseif(MSVC) - add_definitions(-DHAVE_NO_OCC_CONFIG_H -DWNT) + add_definitions(-DWNT) endif(CYGWIN) + find_path(OCC_CONFIG_H "config.h" PATHS ENV CASROOT PATH_SUFFIXES inc + include opencascade NO_DEFAULT_PATH) + if(NOT OCC_CONFIG_H) + add_definitions(-DHAVE_NO_OCC_CONFIG_H) + endif(NOT OCC_CONFIG_H) endif(OCC_INC) endif(NUM_OCC_LIBS EQUAL NUM_OCC_LIBS_REQUIRED) endif(ENABLE_OCC) -- GitLab