Skip to content

Commit d08069e

Browse files
committed
attempt to fix #9
1 parent 21780d1 commit d08069e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/BoostLibInstaller.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,10 @@ function(boost_lib_installer req_boost_version req_boost_libs)
173173
if(boost_libs)
174174
message(STATUS "Boost libs scheduled for build: ${boost_libs}")
175175
set(Boost_LIBRARIES "${boost_libs}" PARENT_SCOPE)
176+
set(Boost_LIBRARY_DIR "${install_dir}/${stage_dir}/lib/" CACHE STRING "" FORCE)
176177
else()
177178
set(Boost_LIBRARIES "" PARENT_SCOPE)
179+
set(Boost_LIBRARY_DIR "" CACHE STRING "" FORCE)
178180
endif()
179181

180182
# b2 headers
@@ -188,6 +190,7 @@ function(boost_lib_installer req_boost_version req_boost_libs)
188190
message(STATUS "Headers found.")
189191
endif()
190192

193+
set(Boost_INCLUDE_DIR "${install_dir}" CACHE STRING "" FORCE)
191194
set(Boost_INCLUDE_DIRS "${install_dir}" PARENT_SCOPE)
192195
set(Boost_FOUND TRUE PARENT_SCOPE)
193196

0 commit comments

Comments
 (0)