Fix missing public include directory
Path "<prefix>/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".
This commit is contained in:
parent
a66751870f
commit
ccacef4362
@ -407,6 +407,7 @@ set_target_properties (glog PROPERTIES PUBLIC_HEADER "${GLOG_PUBLIC_H}")
|
||||
target_include_directories (glog BEFORE PUBLIC
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>"
|
||||
"$<INSTALL_INTERFACE:include>"
|
||||
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user