fix cmake macro add_backward; just use variable BACKWARD_INCLUDE_DIRS instead of _BACKWARD_INCLUDE_DIRS

This commit is contained in:
Pierre Kestener 2017-11-14 15:59:29 +01:00
parent b7e2709442
commit 2e8dbeea62

View File

@ -133,7 +133,7 @@ find_package_handle_standard_args(Backward
list(APPEND _BACKWARD_INCLUDE_DIRS ${BACKWARD_INCLUDE_DIR})
macro(add_backward target)
target_include_directories(${target} PRIVATE ${_BACKWARD_INCLUDE_DIRS})
target_include_directories(${target} PRIVATE ${BACKWARD_INCLUDE_DIRS})
set_property(TARGET ${target} APPEND PROPERTY COMPILE_DEFINITIONS ${BACKWARD_DEFINITIONS})
set_property(TARGET ${target} APPEND PROPERTY LINK_LIBRARIES ${BACKWARD_LIBRARIES})
endmacro()