Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake is not able to find boost components using wt-config.cmake #160

Merged
merged 1 commit into from
Jan 15, 2020

Commits on Jan 10, 2020

  1. CMake is not able to find boost components using wt-config.cmake

    Simple explanation:
    The expression
    ```
    find_package(Boost QUIET COMPONENTS "@Boost_COMPONENTS@")
    ```
    results in
    ```
    find_package(Boost QUIET COMPONENTS "program_options;filesystem;thread")
    ```
    according to the CMake documentation [1] and [2] is a list with one entry `"program_options;filesystem;thread"` and CMake is unable to find the component `"program_options;filesystem;thread"`
    
    The correct form is
    ```
    find_package(Boost QUIET COMPONENTS program_options;filesystem;thread)
    ```
    Then CMake interprets `program_options;filesystem;thread` to a list with three entries.
    
    [1] https://cmake.org/cmake/help/latest/command/find_package.html?highlight=components
    [2] https://cmake.org/cmake/help/latest/command/list.html
    StefanRommel authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    ba96138 View commit details
    Browse the repository at this point in the history