Skip to content

Commit

Permalink
replaced add_definitions calls within PCLConfig.cmake.in with adding …
Browse files Browse the repository at this point in the history
…to PCL_DEFINITIONS list
  • Loading branch information
Algomorph committed Dec 15, 2015
1 parent 8567baf commit 7d3dd9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PCLConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ IF(GLEW_FOUND)
MESSAGE(STATUS "Found Glew: ${GLEW_LIBRARIES}")
ENDIF(NOT GLEW_FIND_QUIETLY)
IF(GLEW_GLEW_LIBRARY MATCHES glew32s)
ADD_DEFINITIONS(-DGLEW_STATIC)
list(APPEND PCL_DEFINITIONS "-DGLEW_STATIC")
ENDIF(GLEW_GLEW_LIBRARY MATCHES glew32s)
ELSE(GLEW_FOUND)
IF(GLEW_FIND_REQUIRED)
Expand Down Expand Up @@ -648,7 +648,7 @@ macro(find_external_library _component _lib _is_optional)
endif(${LIB}_DEFINITIONS AND NOT ${LIB} STREQUAL "VTK")
else(${LIB}_FOUND)
if("${_is_optional}" STREQUAL "OPTIONAL")
add_definitions("-DDISABLE_${LIB}")
list(APPEND PCL_${COMPONENT}_DEFINITIONS "-DDISABLE_${LIB}")
pcl_message("** WARNING ** ${_component} features related to ${_lib} will be disabled")
elseif("${_is_optional}" STREQUAL "REQUIRED")
if((NOT PCL_FIND_ALL) OR (PCL_FIND_ALL EQUAL 1))
Expand Down

0 comments on commit 7d3dd9e

Please sign in to comment.