diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake index ae13a63dfdc..b450b3c2e4c 100644 --- a/cmake/libutils.cmake +++ b/cmake/libutils.cmake @@ -222,6 +222,7 @@ MACRO(MERGE_LIBRARIES_SHARED TARGET_ARG) ADD_VERSION_INFO(${TARGET} SHARED SRC) ENDIF() ADD_LIBRARY(${TARGET} SHARED ${SRC}) + TARGET_INCLUDE_DIRECTORIES(${TARGET} INTERFACE $) IF(ARG_EXCLUDE_FROM_ALL) IF(NOT ARG_SKIP_INSTALL) @@ -361,6 +362,7 @@ MACRO(MERGE_CONVENIENCE_LIBRARIES TARGET_ARG) CONFIGURE_FILE_CONTENT("${SOURCE_FILE_CONTENT}" "${SOURCE_FILE}") ADD_LIBRARY(${TARGET} STATIC ${SOURCE_FILE}) + TARGET_INCLUDE_DIRECTORIES(${TARGET} INTERFACE $) MY_CHECK_CXX_COMPILER_WARNING("-Wmissing-profile" HAS_MISSING_PROFILE) IF(FPROFILE_USE AND HAS_MISSING_PROFILE) ADD_COMPILE_FLAGS(${SOURCE_FILE} COMPILE_FLAGS ${HAS_MISSING_PROFILE})