Skip to content

Commit 3474f02

Browse files
committed
Added boost include dirs to exported cppnetlib include dirs.
1 parent 323f979 commit 3474f02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,12 @@ export(PACKAGE cppnetlib)
119119
file(RELATIVE_PATH REL_INCLUDE_DIR "${INSTALL_CMAKE_DIR}"
120120
"${CMAKE_INSTALL_FULL_INCLUDEDIR}")
121121
# ... for the build tree
122-
set(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}")
122+
set(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}" ${Boost_INCLUDE_DIRS})
123123
configure_file(cppnetlibConfig.cmake.in
124124
"${PROJECT_BINARY_DIR}/cppnetlibConfig.cmake" @ONLY)
125125
# ... for the install tree
126126
set(CONF_INCLUDE_DIRS "\${CPPNETLIB_CMAKE_DIR}/${REL_INCLUDE_DIR}")
127+
set(CONF_INCLUDE_DIRS ${CONF_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
127128
configure_file(cppnetlibConfig.cmake.in
128129
"${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/cppnetlibConfig.cmake" @ONLY)
129130
# ... for both

0 commit comments

Comments
 (0)