Git Product home page Git Product logo

Comments (4)

cyrush avatar cyrush commented on June 1, 2024

Hi @ibaned - happy to try to find a way to help with your build workflow.

Adding a simple CMakelists.txt file that includes the main one makes cmake unhappy:

CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

It also changes the full project root, which breaks some of the root relative path used across the build system.

Any other ideas of what we can try?

from conduit.

ibaned avatar ibaned commented on June 1, 2024

Ah, that's unfortunate... Even if you went through the refactoring to put those commands there and change the paths it would likely break current users who find the top-level CMakeLists.txt file in src... I suppose this is something that would be compatibility breaking so it's up to you if you want to go through the trouble. We can keep working around it, but at least if you start future projects it would be great to follow the convention of a root directory CMake file. Thanks for trying!

from conduit.

cyrush avatar cyrush commented on June 1, 2024

Yes, sorry this is a pain for your team. This is a pattern we have used in a few project to clearly partition the compiled code from other revision controlled aspects of a project. If you see it pop up else where, you can shake your fist in my general direction :-)

from conduit.

rhornung67 avatar rhornung67 commented on June 1, 2024

@cyrush you'll get your comeuppance 👊

from conduit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.