boostorg / boostorg/boost

Trying to build with CMake, but dependency is not maitained with add_subdirectory

オープン
#580 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
HTML
スター
8.6k
フォーク
1.9k
平均マージ
39分
マージ済み PR(30日)
2

説明

Hi,

I was trying to build boost with cmake, but I had several errors of the form:
```
CMake Error at libs/date_time/CMakeLists.txt:10 (add_library):
Target "boost_date_time" links to target "Boost::tuple" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?


CMake Error at libs/date_time/CMakeLists.txt:10 (add_library):
Target "boost_date_time" links to target "Boost::function" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
```
Looking at BoostRoot.cmake it seems the for loop at line 224:
```
foreach(__boost_lib_cml IN LISTS __boost_libraries)
...
add_subdirectory(libs/${__boost_lib})
__boost_auto_install(${__boost_lib})
...
endif()
```

does not care about the order of dependencies while doing add_subdirectory. Wouldn't the correct order of add_subdirectory be in accordance with the order in which ${__boost_include_libraries} are listed instead of alphabetical order ?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。