star-cpr

Clip 2D meshes with 2D polygons
git clone git://git.meso-star.fr/star-cpr.git
Log | Files | Refs | README | LICENSE

commit 62816d548387871eaf7b652e9aafd9eedf761053
parent 9e2c229fb03bd225f1eb8be43f84437d63ea0d5a
Author: Vincent Forest <vincent.forest@meos-star.com>
Date:   Mon, 17 Dec 2018 16:20:59 +0100

Update the Clipper CMake Module

On GNU/Linux use the release library if its debug version is not found.

Diffstat:
Mcmake/ClipperConfig.cmake | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/cmake/ClipperConfig.cmake b/cmake/ClipperConfig.cmake @@ -1,4 +1,4 @@ -# Copyright (C) |Meso|Star> 2016 (contact@meso-star.com) +# Copyright (C) |Meso|Star> 2016-2018 (contact@meso-star.com) # # This software is a computer program whose purpose is to generate files # used to build the Star-3D library. @@ -53,7 +53,12 @@ if(CMAKE_HOST_WIN32) set(_property IMPORTED_IMPLIB) else(CMAKE_HOST_WIN32) set(_property IMPORTED_LOCATION) + if(NOT Clipper_LIBRARY_DEBUG) # Fallback lib + get_property(_doc CACHE Clipper_LIBRARY_DEBUG PROPERTY HELPSTRING) + set(Clipper_LIBRARY_DEBUG ${Clipper_LIBRARY} CACHE PATH ${_doc} FORCE) + endif(NOT Clipper_LIBRARY_DEBUG) endif(CMAKE_HOST_WIN32) + add_library(Clipper SHARED IMPORTED) set_target_properties(Clipper PROPERTIES ${_property} ${Clipper_LIBRARY_DEBUG}