ExternalProject_Add appends "GCodeBlocks" to the cmake command
I'm trying to add to my project, in the guide it's built with the Ninja, so here is my config for this library (there are a lot of cmake files in the project, but none of them mention GCodeBlocks)
ExternalProject_Add(cpprestsdk
PREFIX third-party/cpprestsdk
GIT_REPOSITORY https://github.com/microsoft/cpprestsdk
GIT_TAG a40a28610db
CMAKE_ARGS -G Ninja ${CPPRESTSDK_SRC_LIB} -DCMAKE_BUILD_TYPE=Release
BUILD_COMMAND ninja
)
ExternalProject_Add_Step(cpprestsdk
download
DEPENDEES download
)
add_library(libcpprestsdk STATIC IMPORTED)
add_dependencies(libcpprestsdk cpprestsdk)
and there is the command that gets executed:
cd /home/gasabr/work/pps/target/debug/third-party/cpprestsdk/src/cpprestsdk-build && /snap/clion/100/bin/cmake/linux/bin/cmake -G Ninja /home/gasabr/work/pps/third-party/cpprestsdk/src/cpprestsdk/ -DCMAKE_BUILD_TYPE=Release "-GCodeBlocks - Unix Makefiles" /home/gasabr/work/pps/target/debug/third-party/cpprestsdk/src/cpprestsdk
Which results in the error, although if I remove everything after GCodeBlocks, everything works fine