Skip to content

Commit

Permalink
fix rpath issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Aug 11, 2023
1 parent 9aa91fc commit 2aafad4
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 @@ -19,7 +19,6 @@ set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${CMAKE_BINARY_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_BINARY_DIR}/lib/cmake)
link_directories(${CMAKE_BINARY_DIR}/lib)
set(CMAKE_MACOSX_RPATH 1)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_CXX_STANDARD 17)
set(DLIO_PROFILER_CMAKE_DIR ${CMAKE_SOURCE_DIR}/CMake ${CMAKE_BINARY_DIR}/lib/cmake)
message(STATUS "-- ${DLIO_PROFILER_CMAKE_DIR}")
Expand Down Expand Up @@ -119,17 +118,18 @@ if (${BRAHMA_FOUND})
message(STATUS "[DLIO_PROFILER] found brahma at ${BRAHMA_INCLUDE_DIRS}")
include_directories(${BRAHMA_INCLUDE_DIRS})
set(DEPENDENCY_LIB ${DEPENDENCY_LIB} ${BRAHMA_LIBRARIES})
message(STATUS "[DLIO_PROFILER] found brahma at ${BRAHMA_INCLUDE_DIRS}")
else ()
message(FATAL_ERROR "-- [DLIO_PROFILER] brahma is needed for ${PROJECT_NAME} build")
endif ()
# find Gotcha
find_package(gotcha REQUIRED)
if (${gotcha_FOUND})
message(STATUS "[Brahma] found gotcha at ${gotcha_INCLUDE_DIRS}")
message(STATUS "[DLIO_PROFILER] found gotcha at ${gotcha_INCLUDE_DIRS}")
include_directories(${gotcha_INCLUDE_DIRS})
set(DEPENDENCY_LIB ${DEPENDENCY_LIB} ${gotcha_LIBRARIES})
else ()
message(FATAL_ERROR "-- [Brahma] gotcha is needed for ${PROJECT_NAME} build")
message(FATAL_ERROR "-- [DLIO_PROFILER] gotcha is needed for ${PROJECT_NAME} build")
endif ()

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
Expand Down

0 comments on commit 2aafad4

Please sign in to comment.