Skip to content

Commit 2ae65fd

Browse files
go back to find(python3)
1 parent fe8531e commit 2ae65fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pythonfmu3/pythonfmu-export/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
3535

3636
# Force to use stable Python ABI https://docs.python.org/3/c-api/stable.html
3737
add_compile_definitions(Py_LIMITED_API)
38-
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
38+
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
3939
if (WIN32)
40-
set(Python3_LIBRARIES ${Python_LIBRARY_DIRS}/python3.lib)
40+
set(Python3_LIBRARIES ${Python3_LIBRARY_DIRS}/python3.lib)
4141
endif ()
4242

4343
if (WIN32)

pythonfmu3/pythonfmu-export/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ target_compile_features(pythonfmu-export PUBLIC "cxx_std_17")
2222

2323
target_include_directories(pythonfmu-export
2424
PRIVATE
25-
"${Python_INCLUDE_DIRS}"
25+
"${Python3_INCLUDE_DIRS}"
2626
"${CMAKE_CURRENT_SOURCE_DIR}"
2727
)
2828

0 commit comments

Comments
 (0)