Skip to content

Commit

Permalink
Only arm64 when in Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Mar 3, 2024
1 parent 0520d92 commit 7fb05cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
set(CMAKE_OSX_ARCHITECTURES x86_64;arm64 CACHE INTERNAL "archs for osx")
if(CMAKE_GENERATOR STREQUAL Xcode)
set(CMAKE_OSX_ARCHITECTURES arm64 CACHE INTERNAL "archs for osx")
endif()

cmake_minimum_required(VERSION 3.16)
project(teqp)
enable_testing()
Expand Down

0 comments on commit 7fb05cf

Please sign in to comment.