I’m using FetchContent to satisfy the mariadb-connector-cpp dependency for poco. I’m cross-compiling, so I don’t want the library to be installed on my normal system place.
include(FetchContent) FetchContent_Declare( mariadb-connector-cpp GIT_REPOSITORY https://github.com/mariadb-corporation/mariadb-connector-cpp.git GIT_TAG 1.0.2 ) FetchContent_MakeAvailable(mariadb-connector-cpp)
During the build, I get this error:
CMake Error: File /home/dfr/m9kapps/src/maconncpp.rc.in does not exist.
because of this line in the mariadb-connector-cpp CMakeLists.txt file:
It looks like the mariadb-connector-cpp CMakeLists.txt file wants you to cd into the root of their cmake project and do the normal; mkdir build; cd build; cmake …
I’m still trying to come up to speed with cmake. Is this telling me that this library is not compatible with FetchContent? Is there something I need to do so that CMAKE_SOURCE_DIR in the mariadb-connector-cpp project will point to the correct location?