Commit e1cae334 authored by Brian Orr's avatar Brian Orr

Use gflags ALIAS instead of ${gflags_XXX} vars

The gflags project updated their CMake config last year with a
`gflags` ALIAS target. This can be used instead of the legacy
`${gflags_LIBRARIES}` and `${gflags_INCLUDE_DIRS}` variables. It also
looks cleaner.

Fixes #198
parent 77a0e36b
...@@ -397,8 +397,7 @@ if (WIN32 AND HAVE_SNPRINTF) ...@@ -397,8 +397,7 @@ if (WIN32 AND HAVE_SNPRINTF)
endif (WIN32 AND HAVE_SNPRINTF) endif (WIN32 AND HAVE_SNPRINTF)
if (gflags_FOUND) if (gflags_FOUND)
target_include_directories (glog PUBLIC $<BUILD_INTERFACE:${gflags_INCLUDE_DIR}>) target_link_libraries (glog PUBLIC gflags)
target_link_libraries (glog PUBLIC ${gflags_LIBRARIES})
if (NOT BUILD_SHARED_LIBS) if (NOT BUILD_SHARED_LIBS)
# Don't use __declspec(dllexport|dllimport) if this is a static build # Don't use __declspec(dllexport|dllimport) if this is a static build
......
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