mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
python: Fixes for building python modules
Moved src include AFTER setter for PYTHONBUILD_VERSION. In this way, the src CMakeLists has a valid PYTHONBUILD_VERSION str. Call find_package on PythonInterp prior to finding the libs (recommended). Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -231,8 +231,6 @@ if (RPM)
|
||||
include(CPack)
|
||||
endif()
|
||||
|
||||
add_subdirectory (src)
|
||||
|
||||
if(BUILDEXAMPLES)
|
||||
add_subdirectory (examples/c++)
|
||||
endif()
|
||||
@ -249,6 +247,8 @@ if (BUILDSWIGPYTHON OR BUILDTESTS)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
add_subdirectory (src)
|
||||
|
||||
if (BUILDTESTS)
|
||||
find_package (PythonInterp ${PYTHONBUILD_VERSION} REQUIRED)
|
||||
enable_testing ()
|
||||
|
Reference in New Issue
Block a user