Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,17 @@ source_group("Fluid Paramdump Wrapper" FILES
if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
find_program(PYTHON_3 python3)
else()
find_package (Python COMPONENTS Interpreter)
if(Python_FOUND)
set(PYTHON_3 ${Python_EXECUTABLE} CACHE PATH "")
set(Python_FIND_VIRTUALENV "FIRST")
find_package(Python3 COMPONENTS Interpreter)
if(Python3_FOUND)
set(PYTHON_3 ${Python3_EXECUTABLE} CACHE PATH "")
endif()
endif()

message(STATUS ${PYTHON_3})
if(NOT PYTHON_3)
message(FATAL_ERROR "Python 3 not found, won't be doing attempting to generate docs")
endif()
message(STATUS "Python3: " ${PYTHON_3})

set(FLUID_GENERATED_DOC "${CMAKE_BINARY_DIR}/json")
set(FLUID_HUMAN_DOC "${CMAKE_CURRENT_SOURCE_DIR}/doc")
Expand Down