added a macOS specific flag which deals with path variables of shared libs
This commit is contained in:
@ -10,6 +10,9 @@ SET (PACKAGE_NAME \"DKS\")
|
||||
SET (PACKAGE_TARNAME \"dks\")
|
||||
SET (DKS_VERSION_STR "\"${DKS_VERSION}\"")
|
||||
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
||||
if (APPLE)
|
||||
SET (CMAKE_MACOSX_RPATH TRUE)
|
||||
endif (APPLE)
|
||||
|
||||
#get compiler name
|
||||
#STRING (REGEX REPLACE ".*/([A-Za-z]*)$" "\\1" COMPILER_NAME ${CMAKE_CXX_COMPILER})
|
||||
@ -175,6 +178,9 @@ IF ( (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "
|
||||
MESSAGE(STATUS "CUDA not found, looking for OpenCL")
|
||||
|
||||
FIND_PACKAGE(OpenCL)
|
||||
MESSAGE("after FIND_PACKAGE(OpenCL): version: ${OpenCL_VERSION_STRING}")
|
||||
MESSAGE("after FIND_PACKAGE(OpenCL): inc dir: ${OpenCL_INCLUDE_DIR}")
|
||||
MESSAGE("after FIND_PACKAGE(OpenCL): lib dir: ${OpenCL_LIBRARY}")
|
||||
IF (OpenCL_FOUND)
|
||||
MESSAGE(STATUS "OpenCL version : ${OpenCL_VERSION_STRING}")
|
||||
MESSAGE(STATUS "OpenCL include dir: ${OpenCL_INCLUDE_DIR}")
|
||||
|
Reference in New Issue
Block a user