Skip to content

cmake errors when trying to build master branch #816

Open

Description

@HighCommander4

I am trying to build the master branch, but getting the following cmake errors:

CMake Error at deps/uri/CMakeLists.txt:77 (add_subdirectory):
  The source directory

    /home/nr/dev/libraries/cpp-netlib-git/deps/uri/deps/googletest

  does not contain a CMakeLists.txt file.


Configuring documentation
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Found PythonInterp: /usr/bin/python (found version "2.7.13")
CMake Error at CMakeLists.txt:136 (add_subdirectory):
  The binary directory

    /home/nr/dev/libraries/cpp-netlib-git/build/deps/uri/test

  is already used to build a source directory.  It cannot be used to build
  source directory

    /home/nr/dev/libraries/cpp-netlib-git/deps/uri/test

  Specify a unique binary directory name.

Note, I did run git submodule init and git submodule update.

Activity

  1. HighCommander4 commented on Feb 14, 2018

    @HighCommander4
    Author

    Hmm, running the same cmake command a second time worked.

    I've never understood cmake...

  2. carun commented on Feb 14, 2018

    @carun

    @HighCommander4 when in doubt, rm -rf build and start from scratch 😃 Look at build.sh in the repo root.

  3. HighCommander4 commented on Feb 14, 2018

    @HighCommander4
    Author

    Oh, to be clear: I still see these errors the first time I run cmake in the build directory, including after deleting the build directory. I have to call it a second time in a row for it to succeed.

  4. HighCommander4 commented on Feb 14, 2018

    @HighCommander4
    Author

    The problem doesn't seem to occur at all on the 0.13-release branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions