[Gmsh] [PATCH] Detect OCE when checking for OpenCascade libraries
D. Barbier
bouzim at gmail.com
Wed Oct 5 17:47:19 CEST 2011
Hello,
OpenCascade Community Edition (OCE) is a fork of OpenCascade made by
users; the latest version (OCE 0.6.0) is based on OCCT 6.5.1. We
first focused on improving portability and ease of deployment, and
replaced Autotools by CMake.
Since gmsh build system is also CMake, it is very easy to support it
too. Here is a patch against CMakeLists.txt, it first looks for
OCEConfig.cmake, and if not found, fallback to the current code to
detect headers and libraries. The 2nd patch is similar, but I ran
"svn diff -x -b" to display only non-whitespace changes. This patch
has been tested on Linux against current SVN, but should also work
without trouble on Windows/Mac and other Unix.
Denis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeLists-OCE.patch
Type: text/x-diff
Size: 4630 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20111005/ea996972/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeLists-OCE.patch-b
Type: application/octet-stream
Size: 1917 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20111005/ea996972/attachment.patch-b>