[s2opc] Fix cmake not using clang++ as linker (#2392)

This commit is contained in:
brameret 2019-05-09 19:32:07 +02:00 committed by Abhishek Arya
parent 807096efc9
commit df44085534
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ make -j$(nproc) install
mkdir -p $S2OPC_BUILD
cd $S2OPC_BUILD
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_COMPILER="$CC" -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_LINKER="$CXX" -DCMAKE_EXE_LINKER_FLAGS="$CXXFLAGS" \
-DCMAKE_C_COMPILER="$CC" -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_EXE_LINKER_FLAGS="$CXXFLAGS" \
-DCMAKE_C_LINK_EXECUTABLE="$CXX <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" \
-DWITH_OSS_FUZZ=ON \
$SRC/S2OPC
cmake --build . --target fuzzers