Skip to content

Fix rpath under macOS #2

@volkm

Description

@volkm

The test does not run under macOS as libantlr4-runtime.4.7.dylib cannot be found.
Interestingly the problem disappears when running cmake and make a second time.
The following works for me:

mkdir build && cd build
cmake ..
make
./test/carl-parser-test
cmake ..
make
./test/carl-parser-test

The first test fails but the second test is successful.

Apparently the second run of cmake introduces a new rpath target which was not there before:
-Wl,-rpath,~/carl-parser/build/resources/lib

How can we fix the cmake files such that the rpath is already correct the first time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions