Skip to content

Commit d093ddb

Browse files
committed
Update CMakeLists.txt
fix compiling issues in Mac M1-M3
1 parent 72a5f24 commit d093ddb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
22
project(XMAP C)
33
set(XMAP_VERSION DEVELOPMENT) # Change DEVELOPMENT to version number for release
44

@@ -109,6 +109,12 @@ if (APPLE)
109109
if (EXISTS /usr/local/lib)
110110
link_directories(/usr/local/lib)
111111
endif ()
112+
if (EXISTS /opt/homebrew/include)
113+
include_directories(/opt/homebrew/include)
114+
endif ()
115+
if (EXISTS /opt/homebrew/lib)
116+
link_directories(/opt/homebrew/lib)
117+
endif ()
112118
endif ()
113119

114120
if (BSD)

0 commit comments

Comments
 (0)