|
|
|
@ -201,25 +201,8 @@ endif ( BUILD_KSIM )
|
|
|
|
|
if ( BUILD_SUPERKARAMBA )
|
|
|
|
|
check_include_file( "sys/types.h" HAVE_SYS_TYPES_H )
|
|
|
|
|
|
|
|
|
|
if( ${CMAKE_VERSION} VERSION_LESS "3.12" )
|
|
|
|
|
find_package( PythonLibs )
|
|
|
|
|
if( NOT PYTHONLIBS_FOUND )
|
|
|
|
|
tde_message_fatal( "Python is required, but was not found on your system" )
|
|
|
|
|
endif( NOT PYTHONLIBS_FOUND )
|
|
|
|
|
else( )
|
|
|
|
|
find_package( Python COMPONENTS Development )
|
|
|
|
|
if( NOT Python_Development_FOUND )
|
|
|
|
|
tde_message_fatal( "Python is required, but was not found on your system" )
|
|
|
|
|
endif( )
|
|
|
|
|
set( PYTHONLIBS_VERSION_STRING "${Python_VERSION}" )
|
|
|
|
|
set( PYTHON_VERSION_STRING "${Python_VERSION}" )
|
|
|
|
|
set( PYTHON_VERSION_MAJOR "${Python_VERSION_MAJOR}" )
|
|
|
|
|
set( PYTHON_VERSION_MINOR "${Python_VERSION_MINOR}" )
|
|
|
|
|
set( PYTHON_INCLUDE_DIRS "${Python_INCLUDE_DIRS}" )
|
|
|
|
|
set( PYTHON_LIBRARIES "${Python_LIBRARIES}" )
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
if( "${PYTHONLIBS_VERSION_STRING}" LESS "3" )
|
|
|
|
|
if( NOT PYTHONLIBS_FOUND OR "${PYTHONLIBS_VERSION_STRING}" LESS "3" )
|
|
|
|
|
tde_message_fatal( "Python3 is required, but was not found on your system" )
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|