Skip to content

Commit

Permalink
Do not use VERSION_GREATER_EQUAL (#3460)
Browse files Browse the repository at this point in the history
Do not use `VERSION_GREATER_EQUAL`
  • Loading branch information
taketwo authored Nov 10, 2019
2 parents f6e4528 + 6ba0ce2 commit 6c049a8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions gpu/people/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,12 @@ REMOVE_VTK_DEFINITIONS()
unset(CUDA_npp_LIBRARY CACHE)
find_cuda_helper_libs(nppc)
find_cuda_helper_libs(npps)
if(${CUDA_VERSION} VERSION_GREATER_EQUAL "9.0")
if(CUDA_VERSION VERSION_GREATER "9.0" OR CUDA_VERSION VERSION_EQUAL "9.0")
find_cuda_helper_libs(nppim)
find_cuda_helper_libs(nppidei)
else()
find_cuda_helper_libs(nppi)
endif()

if(${CUDA_VERSION} VERSION_GREATER_EQUAL "9.0")
set(CUDA_npp_LIBRARY ${CUDA_nppc_LIBRARY} ${CUDA_nppim_LIBRARY} ${CUDA_nppidei_LIBRARY} ${CUDA_npps_LIBRARY} CACHE STRING "npp library")
else()
find_cuda_helper_libs(nppi)
set(CUDA_npp_LIBRARY ${CUDA_nppc_LIBRARY} ${CUDA_nppi_LIBRARY} ${CUDA_npps_LIBRARY} CACHE STRING "npp library")
endif()

Expand Down Expand Up @@ -74,4 +70,4 @@ PCL_MAKE_PKGCONFIG(${LIB_NAME} COMPONENT ${SUBSYS_NAME} DESC ${SUBSYS_DESC} PCL_
# install include files
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_PATH}" ${hdrs} ${hdrs_cuda})

add_subdirectory(tools)
add_subdirectory(tools)

0 comments on commit 6c049a8

Please sign in to comment.