INTO-CPS-Association / pyfmu

https://into-cps-application.readthedocs.io/en/latest/submodules/pyfmu/docs/index.html
7 stars 2 forks source link

Resolve issues of locating Python interpreter on Windows in CMake. #10

Closed clegaard closed 4 years ago

clegaard commented 4 years ago

The shared library which warps the Python code relies on CMake being able to locate the Python Interpreter.

This works out of the box on Linux with the command:

set(Python_FIND_ABI "OFF" "ANY" "ANY") # FORCE cmake to link against RELEASE LIBRARIES
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)

However, this approach rarely works on windows.

clegaard commented 4 years ago

duplicate of #16