Skip to content

Commit

Permalink
Merge pull request google#98 from willyd/relocatable
Browse files Browse the repository at this point in the history
Added $<BUILD_INTERFACE> to gflags include directory
  • Loading branch information
ukai authored Oct 19, 2016
2 parents b3a1dc3 + 45901a3 commit f5cc863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ if (WIN32 AND HAVE_SNPRINTF)
endif (WIN32 AND HAVE_SNPRINTF)

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)
Expand Down

0 comments on commit f5cc863

Please sign in to comment.