Skip to content
Snippets Groups Projects
Commit 8fc08b88 authored by Duong Dang's avatar Duong Dang
Browse files

Add appropriate flag. file_system::file_string is deprecated since boost 1.46.

parent 817e59ff
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,17 @@ INSTALL(TARGETS ${LIBRARY_NAME} ...@@ -46,8 +46,17 @@ INSTALL(TARGETS ${LIBRARY_NAME}
DESTINATION lib) DESTINATION lib)
SET(EXECUTABLE_NAME dg-python) 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) ADD_EXECUTABLE(${EXECUTABLE_NAME} dg-python.cc)
TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
${Boost_LIBRARIES}
${LIBRARY_NAME} ${LIBRARY_NAME}
) )
INSTALL(TARGETS dg-python DESTINATION bin) INSTALL(TARGETS dg-python DESTINATION bin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment