My CMake build preparation cannot find a package configuration file
(run below with few of its --trace-expand
values)
cmake -S . -B ./build/ -DCMAKE_BUILD_TYPE=Release
/workspaces/template-cpp/CMakeLists.txt(5): set(CMAKE_CXX_STANDARD 17 )
/workspaces/template-cpp/CMakeLists.txt(9): set(CMAKE_MODULE_PATH ./build/Release/generators/ )
/workspaces/template-cpp/CMakeLists.txt(16): include_directories(./src )
/workspaces/template-cpp/CMakeLists.txt(17): add_subdirectory(src )
/workspaces/template-cpp/src/CMakeLists.txt(3): find_package(libpqxx REQUIRED )
CMake Error at src/CMakeLists.txt:3 (find_package):
By not providing "Findlibpqxx.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "libpqxx", but
CMake did not find one.
Could not find a package configuration file provided by "libpqxx" with any
of the following names:
libpqxxConfig.cmake
libpqxx-config.cmake
Add the installation prefix of "libpqxx" to CMAKE_PREFIX_PATH or set
"libpqxx_DIR" to a directory containing one of the above files. If
"libpqxx" provides a separate development package or SDK, be sure it has
been installed.
But the file is where, I think, it is expected:
$ ls ./build/Release/generators/libpqxx-config.cmake
./build/Release/generators/libpqxx-config.cmake
Even changing CMAKE_MODULE_PATH
for an absolute path /workspaces/template-cpp/build/Release/generators/
is unsuccessful.
What have I misconfigured? Am I setting wrong variables to run it?