|
@@ -56,7 +56,9 @@ IF (Boost_FOUND)
|
|
|
SET(Boost_USE_MULTITHREADED ON)
|
|
|
SET(Boost_USE_STATIC_RUNTIME OFF)
|
|
|
# Find the boost python 3 component
|
|
|
- SET(PYTHON_VERSIONS python3 python-py35 python-py34 python-py33 python-py32)
|
|
|
+ EXECUTE_PROCESS(COMMAND python3 --version OUTPUT_VARIABLE PY_VERSION)
|
|
|
+ STRING(REGEX REPLACE "Python ([0-9]+)\.([0-9]+)\.[0-9]+" "python-py\\1\\2" PY_VERSION ${PY_VERSION})
|
|
|
+ SET(PYTHON_VERSIONS python3 ${PY_VERSION} python-py35 python-py34 python-py33 python-py32)
|
|
|
FOREACH(VERSION ${PYTHON_VERSIONS})
|
|
|
FIND_PACKAGE(Boost COMPONENTS ${VERSION} QUIET)
|
|
|
IF(Boost_FOUND)
|
|
@@ -84,4 +86,3 @@ ENDIF ()
|
|
|
# comment this out to build executable (for development)
|
|
|
#ADD_EXECUTABLE(cpp-pcapreader ${SOURCE_FILES})
|
|
|
#TARGET_LINK_LIBRARIES(cpp-pcapreader ${Boost_LIBRARIES} "${TINS_LIBRARY}" SQLiteCpp sqlite3 pthread dl)
|
|
|
-
|