Commit 45901a35 authored by Guillaume Dumont's avatar Guillaume Dumont

Added $<BUILD_INTERFACE> to gflags include to avoid including the gflags include…

Added $<BUILD_INTERFACE> to gflags include to avoid including the gflags include dir in the glog-targets.cmake
parent f176cc84
......@@ -390,7 +390,7 @@ if (HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS)
endif (HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS)
if (gflags_FOUND)
target_include_directories (glog PUBLIC ${gflags_INCLUDE_DIR})
target_include_directories (glog PUBLIC $<BUILD_INTERFACE:${gflags_INCLUDE_DIR}>)
target_link_libraries (glog PUBLIC ${gflags_LIBRARIES})
if (NOT BUILD_SHARED_LIBS)
......
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