From f6569963a1e6cdfe283e154154c193628234dd01 Mon Sep 17 00:00:00 2001 From: law12019 Date: Tue, 23 Feb 2016 15:49:59 -0500 Subject: [PATCH] Fix build when libccd package config not found. Link to ccd library by full path per preferred cmake convention. This fixed the build when libccd is not found by pkgconfig. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cdf273aa9..abc437861 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -129,10 +129,10 @@ if(NOT CCD_FOUND) # of ccd find_path(CCD_INCLUDE_DIRS ccd.h PATH_SUFFIXES ccd) - find_library(CCD_LIBRARY_DIRS + find_library(CCD_LIBRARY ${CMAKE_SHARED_LIBRARY_PREFIX}ccd${CMAKE_SHARED_LIBRARY_SUFFIX}) - if(CCD_INCLUDE_DIRS AND CCD_LIBRARY_DIRS) - set(CCD_LIBRARIES "ccd") + if(CCD_INCLUDE_DIRS AND CCD_LIBRARY) + set(CCD_LIBRARIES "${CCD_LIBRARY}") else() message(FATAL_ERROR "Libccd is required by FCL") endif()