From 4176c396205512e9c4776e23291db7de9156a6a5 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Sat, 6 Apr 2024 13:58:19 +0300 Subject: [PATCH] Add osx architectures. --- cmake/osx-arm64.cmake | 14 ++++++++++++++ cmake/osx-x64.cmake | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 cmake/osx-arm64.cmake create mode 100644 cmake/osx-x64.cmake diff --git a/cmake/osx-arm64.cmake b/cmake/osx-arm64.cmake new file mode 100644 index 0000000..b708f77 --- /dev/null +++ b/cmake/osx-arm64.cmake @@ -0,0 +1,14 @@ +# QUIK Toolchain file for OSX-ARM64 systems. +# Copyright (C) 2024 + +set(CMAKE_SYSTEM_NAME OSX) + +set(CMAKE_C_COMPILER aarch64-apple-darwin23-clang) +set(CMAKE_CXX_COMPILER aarch64-apple-darwin23-clang++) + +set(CMAKE_FIND_ROOT_PATH "/usr/local/SDK/MacOSX14.0.sdk/usr" + "/usr/local/SDK/MacOSX14.0.sdk/System") + +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/cmake/osx-x64.cmake b/cmake/osx-x64.cmake new file mode 100644 index 0000000..5af58d8 --- /dev/null +++ b/cmake/osx-x64.cmake @@ -0,0 +1,14 @@ +# QUIK Toolchain file for OSX-ARM64 systems. +# Copyright (C) 2024 + +set(CMAKE_SYSTEM_NAME OSX) + +set(CMAKE_C_COMPILER x86_64-apple-darwin23-clang) +set(CMAKE_CXX_COMPILER x86_64-apple-darwin23-clang++) + +set(CMAKE_FIND_ROOT_PATH "/usr/local/SDK/MacOSX14.0.sdk/usr" + "/usr/local/SDK/MacOSX14.0.sdk/System") + +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)