We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a6d6f7 commit d8059deCopy full SHA for d8059de
CMakeLists.txt
@@ -1,6 +1,17 @@
1
cmake_minimum_required(VERSION 3.18)
2
include_guard(GLOBAL)
3
set (CMAKE_CXX_STANDARD 17)
4
+if(APPLE)
5
+ # cmake likes to build to the major version.
6
+ # rust likes to build to the minor version (to build libextism)
7
+ # attempt to set cmake to build to the minor version
8
+ execute_process(
9
+ COMMAND sw_vers -productVersion
10
+ OUTPUT_VARIABLE MACOS_VERSION
11
+ OUTPUT_STRIP_TRAILING_WHITESPACE
12
+ )
13
+ set(CMAKE_OSX_DEPLOYMENT_TARGET ${MACOS_VERSION} CACHE STRING "Minimum OS X deployment version")
14
+endif()
15
16
# extism-cpp library
17
project(extism-cpp VERSION 1.0.0 DESCRIPTION "C++ bindings for libextism")
0 commit comments