Skip to content

Commit

Permalink
cmake: fix find_package(Python)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Nov 7, 2024
1 parent 34626b8 commit 37bf020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
if(APPLE)
cmake_minimum_required(VERSION 3.16)
else()
cmake_minimum_required(VERSION 3.4)
cmake_minimum_required(VERSION 3.15)
endif()

project(cil LANGUAGES CXX)

cmake_policy(SET CMP0094 NEW)
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.27)
cmake_policy(SET CMP0148 OLD)
endif()
Expand Down
2 changes: 1 addition & 1 deletion recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if not "%GIT_DESCRIBE_NUMBER%"=="0" (
set SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CIL=%PKG_VERSION%.dev%GIT_DESCRIBE_NUMBER%+%GIT_DESCRIBE_HASH%
)

cmake "%RECIPE_DIR%\.." -G "NMake Makefiles" ^
cmake "%RECIPE_DIR%\.." -G "NMake Makefiles" -DPython_ROOT_DIR="%BUILD_PREFIX%" ^
-DCONDA_BUILD=ON ^
-DCMAKE_BUILD_TYPE=RelWithDebInfo ^
-DLIBRARY_LIB=%CONDA_PREFIX%\lib ^
Expand Down

0 comments on commit 37bf020

Please sign in to comment.