Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
fix compiling issues in Mac M1-M3
  • Loading branch information
idealeer committed Jan 5, 2024
1 parent 72a5f24 commit d093ddb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(XMAP C)
set(XMAP_VERSION DEVELOPMENT) # Change DEVELOPMENT to version number for release

Expand Down Expand Up @@ -109,6 +109,12 @@ if (APPLE)
if (EXISTS /usr/local/lib)
link_directories(/usr/local/lib)
endif ()
if (EXISTS /opt/homebrew/include)
include_directories(/opt/homebrew/include)
endif ()
if (EXISTS /opt/homebrew/lib)
link_directories(/opt/homebrew/lib)
endif ()
endif ()

if (BSD)
Expand Down

0 comments on commit d093ddb

Please sign in to comment.