Skip to content

Commit 167cb65

Browse files
committed
Update CMakeLists.txt
1 parent 928f4a5 commit 167cb65

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
22

3+
if(APPLE)
4+
set(CMAKE_MACOSX_RPATH ON)
5+
set(CMAKE_INSTALL_RPATH "@loader_path;@rpath;/opt/homebrew/lib")
6+
set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0")
7+
endif()
8+
39
# ---- Project ----
410
project(RAYX VERSION 0.21.7)
511
if(MSVC)
@@ -67,6 +73,10 @@ if(APPLE)
6773
link_libraries(${OpenMP_omp_LIBRARY})
6874
endif()
6975
endif()
76+
77+
set(HDF5_ROOT "/opt/homebrew/opt/hdf5")
78+
find_package(HDF5 REQUIRED COMPONENTS C HL)
79+
7080
endif()
7181

7282

0 commit comments

Comments
 (0)