Bug 394557

Summary: CMake error when boost filesystem is missing
Product: [Applications] Heaptrack Reporter: Thomas McGuire <mcguire>
Component: generalAssignee: Milian Wolff <mail>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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}")