CMake complaints on missing boost components
Hi,
when building tinyHHG on our system at LMU I get warnings from CMake of the following kind:
CMake Warning at /usr/share/cmake-3.6/Modules/FindBoost.cmake:743 (message):
Imported targets not available for Boost version 106501
Call Stack (most recent call first):
/usr/share/cmake-3.6/Modules/FindBoost.cmake:842 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.6/Modules/FindBoost.cmake:1411 (_Boost_MISSING_DEPENDENCIES)
/home/mohr/Research/Geophysik/terraneo/Redesign/walberla/CMakeLists.txt:626 (find_package)
This seems to be a little strange to me for two reasons. Firstly, all components possibly listed in waLBerla_REQUIRED_BOOST_COMPONENTS
, which as far as I see from walberla/CMakeLists.txt should be
- chrono
- filesystem
- system
- thread
- regex
- python3
are actually installed. Secondly the corresponding libraries are correctly listed in build/CMakeCache.txt
,
e.g.
Boost_CHRONO_LIBRARY_RELEASE:FILEPATH=/opt/software/boost/1.65.1/lib/libboost_chrono.so
and building and linking the apps works without problem.
I had set the following environment variables as hints for CMake's FindBoost module
setenv BOOST_ROOT /opt/software/boost/1.65.1
setenv BOOST_LIBRARYDIR /opt/software/boost/1.65.1/lib
setenv BOOST_INCLUDEDIR /opt/software/boost/1.65.1/include
setenv Boost_NO_SYSTEM_PATHS ON
and also added 1.65.1 to Boost_ADDITIONAL_VERSIONS
in walberla's CMakeList.txt.
Any suggestions?
Cheers
Marcus