I tried to build the library on Linux using CMake. First, I ran the configuration step:
cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DGRAPHQL_USE_RAPIDJSON=OFF -DGRAPHQL_BUILD_TESTS=OFF
Then I started the build:
cmake --build build/ -- -j$(nproc)
Compilation succeeded, but linking failed with the following error:
/usr/local/bin/ld: cannot find -lgraphqljson: No such file or directory
This error appeared multiple times for the following targets:
[ 79%] Linking CXX executable sample
[ 82%] Linking CXX executable benchmark
[ 82%] Linking CXX executable sample_nointrospection
[ 82%] Linking CXX executable learn_star_wars
[ 83%] Linking CXX executable benchmark_nointrospection
[ 89%] Linking CXX executable server
[ 95%] Linking CXX executable client
If the configuration settings allow disabling the use of RapidJSON, why isn't this accounted for in the build scripts? Why do they require this library?
I tried to build the library on Linux using CMake. First, I ran the configuration step:
cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DGRAPHQL_USE_RAPIDJSON=OFF -DGRAPHQL_BUILD_TESTS=OFFThen I started the build:
cmake --build build/ -- -j$(nproc)Compilation succeeded, but linking failed with the following error:
This error appeared multiple times for the following targets:
If the configuration settings allow disabling the use of RapidJSON, why isn't this accounted for in the build scripts? Why do they require this library?