This commit is contained in:
Vítor Santos Costa 2015-06-19 01:22:12 +01:00
parent 1b8cd91618
commit 9ad02e3f9a
2 changed files with 5 additions and 5 deletions

View File

@ -35,15 +35,16 @@ if (PYTHONLIBS_FOUND) # PYTHONLIBS_FOUND - have the Python l
# first to get the currently active Python version by default with a consistent # first to get the currently active Python version by default with a consistent
# version of PYTHON_LIBRARIES. # version of PYTHON_LIBRARIES.
add_library (python SHARED ${PYTHON_SOURCES}) add_library (libpython SHARED ${PYTHON_SOURCES})
target_link_libraries(python libYap ${PYTHON_LIBRARIES}) target_link_libraries(libpython libYap ${PYTHON_LIBRARIES})
set_target_properties (python PROPERTIES PREFIX "") set_target_properties (libpython PROPERTIES PREFIX "")
include_directories (${PYTHON_INCLUDE_DIRS}) include_directories (${PYTHON_INCLUDE_DIRS})
install(TARGETS python install(TARGETS libpython
LIBRARY DESTINATION ${dlls} LIBRARY DESTINATION ${dlls}
) )

View File

@ -3,7 +3,6 @@
#undef _XOPEN_SOURCE // python does its own thing #undef _XOPEN_SOURCE // python does its own thing
#endif #endif
#include <Python.h> #include <Python.h>
#include <SWI-Stream.h>
#include <SWI-Prolog.h> #include <SWI-Prolog.h>
#ifdef HAVE_STAT #ifdef HAVE_STAT
#undef HAVE_STAT #undef HAVE_STAT