From ccacef43627125fee3ba4c1079df01271e263fce Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Wed, 9 Sep 2015 00:33:31 +0300 Subject: [PATCH] Fix missing public include directory Path "/include" will not be added to the headers search of dependent targets without specifying INSTALL_INTERFACE, i.e. compilation will fail with error: "fatal error: 'glog/logging.h' file not found". --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ecb1355..1528a52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -407,6 +407,7 @@ set_target_properties (glog PROPERTIES PUBLIC_HEADER "${GLOG_PUBLIC_H}") target_include_directories (glog BEFORE PUBLIC "$" "$" + "$" PRIVATE ${CMAKE_CURRENT_BINARY_DIR} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) -- 2.34.1