Skip to content

Commit 73c3b81

Browse files
author
Walter Gray
committed
Added include directories to targets (How was this ever working?)
1 parent cc851aa commit 73c3b81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/CMakeHelpers.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,17 @@ endmacro ()
8989

9090
macro (link_boost)
9191
target_link_libraries (${TARGET_NAME} ${Boost_LIBRARIES})
92+
set_property(TARGET ${TARGET_NAME} APPEND PROPERTY INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIR})
9293
endmacro ()
9394

9495
macro (link_openssl)
9596
target_link_libraries (${TARGET_NAME} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
97+
set_property(TARGET ${TARGET_NAME} APPEND PROPERTY INCLUDE_DIRECTORIES ${OPENSSL_INCLUDE_DIR})
9698
endmacro ()
9799

98100
macro (link_zlib)
99101
target_link_libraries (${TARGET_NAME} ${ZLIB_LIBRARIES})
102+
set_property(TARGET ${TARGET_NAME} APPEND PROPERTY INCLUDE_DIRECTORIES ${ZLIB_INCLUDE_DIR})
100103
endmacro ()
101104

102105
macro (include_subdirs PARENT)

0 commit comments

Comments
 (0)