Skip to content

Commit

Permalink
Merge pull request #94 from law12019/master
Browse files Browse the repository at this point in the history
Fix build when libccd package config not found.
  • Loading branch information
scpeters committed Mar 22, 2016
2 parents ebb6d3d + f656996 commit ea10bba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ea10bba

Please sign in to comment.