diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4c445e5f0772f9870b7958bf8eca5d17965a8366..6960b658c9676213b1fc1e85c39f292c1fe15f6a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -46,8 +46,17 @@ INSTALL(TARGETS ${LIBRARY_NAME} DESTINATION lib) SET(EXECUTABLE_NAME dg-python) + +IF (${Boost_VERSION} VERSION_GREATER "1.45") + MESSAGE(STATUS "Adding deprecated flag to boost") + ADD_DEFINITIONS(-DBOOST_FILESYSTEM_DEPRECATED) +ENDIF() + + + ADD_EXECUTABLE(${EXECUTABLE_NAME} dg-python.cc) TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} + ${Boost_LIBRARIES} ${LIBRARY_NAME} ) INSTALL(TARGETS dg-python DESTINATION bin)