File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,13 @@ find_package(Eigen3 REQUIRED)
25
25
find_package (GDAL 3 REQUIRED)
26
26
27
27
# macOS
28
- if (APPLE )
29
- link_directories (/opt/homebrew/opt/yaml-cpp/lib)
28
+ if (${CMAKE_SYSTEM_NAME} MATCHES Darwin)
29
+ if (${CMAKE_SYSTEM_PROCESSOR} MATCHES arm64)
30
+ link_directories (/opt/homebrew/opt/yaml-cpp/lib)
31
+ endif ()
32
+ if (${CMAKE_SYSTEM_PROCESSOR} MATCHES x84_64)
33
+ link_directories (/usr/local/opt/yaml-cpp/lib)
34
+ endif ()
30
35
endif ()
31
36
32
37
# Reverse compatability for GDAL<3.5
@@ -44,7 +49,6 @@ target_include_directories(${PROJECT_NAME}
44
49
PUBLIC
45
50
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>"
46
51
"$<INSTALL_INTERFACE:include/${PROJECT_NAME} >"
47
- ${GDAL_INCLUDE_DIR}
48
52
)
49
53
50
54
target_link_libraries (${PROJECT_NAME} Eigen3::Eigen GDAL::GDAL)
@@ -61,7 +65,6 @@ add_executable(test_tif_loader
61
65
target_include_directories (test_tif_loader
62
66
PRIVATE
63
67
include
64
- ${GDAL_INCLUDE_DIR}
65
68
)
66
69
67
70
target_link_libraries (test_tif_loader
You can’t perform that action at this time.
0 commit comments