File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
- find_package (Python REQUIRED COMPONENTS Interpreter Development.Module)
2
1
3
2
if (LIEF_PY_LIEF_EXT)
4
3
if (LIEF_PY_LIEF_EXT_SHARED)
@@ -21,6 +20,7 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
21
20
endif ()
22
21
23
22
if (LIEF_EXTERNAL_NANOBIND)
23
+ find_package (Python REQUIRED COMPONENTS Interpreter Development.Module)
24
24
find_package (nanobind REQUIRED)
25
25
else ()
26
26
set (NANOBIND_VERSION 2.6.1.r32.g4a0b83a)
@@ -31,11 +31,13 @@ else()
31
31
URL ${NANOBIND_URL}
32
32
URL_HASH ${NANOBIND_SHA256}
33
33
)
34
- FetchContent_Populate(nanobind)
34
+ FetchContent_MakeAvailable(nanobind)
35
+ find_package (Python REQUIRED COMPONENTS Interpreter Development.Module)
35
36
find_package (nanobind REQUIRED PATHS ${nanobind_SOURCE_DIR} /cmake
36
37
NO_DEFAULT_PATH)
37
38
endif ()
38
39
40
+
39
41
message (STATUS "Python version: ${Python_VERSION} " )
40
42
message (STATUS "Python lib: ${Python_LIBRARIES} " )
41
43
message (STATUS "Python include: ${Python_INCLUDE_DIRS} " )
You can’t perform that action at this time.
0 commit comments