Commit 7eda9195 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Do not use target_include_directories on CMake version lower than 2.8.11.

parent b3765e87
......@@ -149,7 +149,11 @@ else(${ENABLE_STATIC})
endif(MSVC)
endif(${ENABLE_STATIC})
set_target_properties(bellesip PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
target_include_directories(bellesip PUBLIC ${INCLUDES})
if("${CMAKE_VERSION}" VERSION_GREATER "2.8.10")
target_include_directories(bellesip PUBLIC ${INCLUDES})
else("${CMAKE_VERSION}" VERSION_GREATER "2.8.10")
include_directories(${INCLUDES})
endif("${CMAKE_VERSION}" VERSION_GREATER "2.8.10")
target_link_libraries(bellesip ${LIBS})
install(TARGETS bellesip
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment