Error during installation
Opened this issue · 3 comments
matygr commented
Hi,
After following the instructions in the "Building the C++ package with CMake" section I'm getting the following error:
CMake Error at doc/CMakeLists.txt:19 (add_custom_target):
add_custom_target cannot create target "doc" because another target with
the same name already exists. The existing target is a custom target
created in source directory
"<path to dir location>/gtsam-quadrics-master/gtsam/doc".
See documentation for policy CMP0002 for more details.
After removing the following lines from the CMakeLists.txt:
find_package(Doxygen)
if (DOXYGEN_FOUND)
add_subdirectory(doc)
endif()
The build passed successfully.
Am I'm missing something?
thanks
btalb commented
Thanks for reporting @matygr .
Can I confirm what line of the installation instructions you're receiving the error. Is it the cmake --build . -j$(nproc)
step or are you running another make <TARGET>
step afterwards?
matygr commented
Hi,
The error is encountered while running the following command:
cmake -DBUILD_PYTHON_WRAP=ON ..
Thanks for the quick response.
z2415445508 commented
I encoutered the same Error while during installation.