Bug 394557 - CMake error when boost filesystem is missing
Summary: CMake error when boost filesystem is missing
Status: RESOLVED FIXED
Alias: None
Product: Heaptrack
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Milian Wolff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-22 09:48 UTC by Thomas McGuire
Modified: 2021-05-21 08:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas McGuire 2018-05-22 09:48:58 UTC
When boost-filesystem is not installed, I get the following CMake error when trying to build heaptrack:

    CMake Error at tests/auto/CMakeLists.txt:20 (if):
      if given arguments:

        "AND" "ON"

      Unknown arguments specified

The error disappears when installing boost-filesystem.
I expect that a missing boost-filesystem dependency is listed as a failed dependency in a more user-friendly way.
Comment 1 Milian Wolff 2021-05-21 08:49:00 UTC
this should be fixed by now, the code now reads:

if ("${Boost_FILESYSTEM_FOUND}" AND "${Boost_SYSTEM_FOUND}")