Skip to content

Commit

Permalink
Merge branch 'main' into FindPython
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Sep 21, 2022
2 parents 84fa385 + 6ddb2c9 commit dae558b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
cmake_minimum_required(VERSION 3.15...3.24)
cmake_minimum_required(VERSION 3.12...3.24)

set(Python_FIND_IMPLEMENTATIONS CPython PyPy)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
endif()
set(SKBUILD_LINK_LIBRARIES_KEYWORD PRIVATE)

set(THREADS_PREFER_PTHREAD_FLAG ON)

project(jarowinkler LANGUAGES C CXX)

find_package(Python COMPONENTS Interpreter Development.Module)
find_package(PythonExtensions REQUIRED)
if(CMAKE_VERSION VERSION_LESS 3.18)
find_package(Python COMPONENTS Interpreter Development REQUIRED)
else()
find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
endif()

include(FetchContent)

set(JW_BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
Expand Down

0 comments on commit dae558b

Please sign in to comment.