You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by tw...@apache.org on 2022/09/10 04:30:40 UTC

[incubator-kvrocks] branch unstable updated: Report error if `CMAKE_OSX_DEPLOYMENT_TARGET` is not set on darwin (#843)

This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 8a206b8  Report error if `CMAKE_OSX_DEPLOYMENT_TARGET` is not set on darwin (#843)
8a206b8 is described below

commit 8a206b86cbd5eef847e468f0ffbbad9bb067d56a
Author: Twice <tw...@gmail.com>
AuthorDate: Sat Sep 10 12:30:36 2022 +0800

    Report error if `CMAKE_OSX_DEPLOYMENT_TARGET` is not set on darwin (#843)
---
 cmake/luajit.cmake | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cmake/luajit.cmake b/cmake/luajit.cmake
index 6b311ec..e5ca3ac 100644
--- a/cmake/luajit.cmake
+++ b/cmake/luajit.cmake
@@ -19,6 +19,10 @@ include_guard()
 
 include(cmake/utils.cmake)
 
+if((${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND (NOT CMAKE_OSX_DEPLOYMENT_TARGET))
+  message(FATAL_ERROR "The CMake option `CMAKE_OSX_DEPLOYMENT_TARGET` need to be specified, e.g. `-DCMAKE_OSX_DEPLOYMENT_TARGET=10.3`")
+endif()
+
 FetchContent_DeclareGitHubWithMirror(luajit
   KvrocksLabs/LuaJIT b80ea0e44bd259646d988324619612f645e4b637
   MD5=f9566c424fb57b226066e3a39a10ec8d