Skip to content

Cannot build tests with CMake (missing file) #1

Description

@ste5e99

Hi there. I am trying to build the project and am running into issues with building the tests out (-DZUNE_BUILD_TESTS=ON). The minute it starts attempting to compile test code, it errors out saying missing files.

[ 14%] Building CXX object CMakeFiles/test_library_json.dir/tests/test_library_json.cpp.o
/home/steve/Code/XuneSyncLibrary/tests/test_library_json.cpp:14:10: fatal error: zune_wireless/zune_wireless_api.h: No such file or directory
   14 | #include "zune_wireless/zune_wireless_api.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/test_library_json.dir/build.make:79: CMakeFiles/test_library_json.dir/tests/test_library_json.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:190: CMakeFiles/test_library_json.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I don't see any other issues so was wondering if this is just a misconfiguration on my end or not. Running cmake --build build per the instructions got me here. Turning test compilation off however is no issue for me.

Thanks for your hard work! I am running this on Guix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions