Skip to content

Commit f71c3b6

Browse files
committed
cmake: Fix issue with boost detection for testapp.
1 parent 9e1227a commit f71c3b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

testapp/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,13 @@ if(HAS_JDBC)
315315
if(DEFINED WITH_BOOST)
316316
set(BOOST_ROOT "${WITH_BOOST}")
317317
set(Boost_NO_SYSTEM_PATHS ON)
318+
319+
# Setting this variable to ON disables attempts to use the cmake
320+
# configuration script provided by Boost and use only the logic
321+
# implemented in FindBoost. The cmake configuration script from Boost
322+
# proved to be buggy on some platforms and breaks our builds.
323+
324+
set(Boost_NO_BOOST_CMAKE ON)
318325
endif()
319326

320327
find_package(Boost)

0 commit comments

Comments
 (0)