Skip to content
Snippets Groups Projects

Don't register include directories in dune registry of packages

All threads resolved!

dune_project is eager to register include directories of upstream modules into the registry of packages. The problem with this is that include directories must be guarded with proper build and install interfaces to work well. If an unguarded include directory is added to an installable target, cmake will rightfully complain that this will not work on the installed version. A first iteration of this MR pointed at out that the right solution here is to just register the target, and delegate the include directories to whoever creates the target (we will add a helper for this later in !1355 (merged)). However, in the discussions we realized that this is also not necessary due dune_project invoking include_directories on upstream packages anyways, making this line completely superfluous in single-builds and instead obstructing super-builds.

Edited by Santiago Ospina De Los Ríos

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    • 05e3cca5 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Simon Praetorius resolved all threads

    resolved all threads

  • Santiago Ospina De Los Ríos changed title from Register module libraries instead of include directories to Do note register include directories in dune packages

    changed title from Register module libraries instead of include directories to Do note register include directories in dune packages

  • changed the description

  • Santiago Ospina De Los Ríos changed title from Do note register include directories in dune packages to Don't register include directories in dune packages

    changed title from Do note register include directories in dune packages to Don't register include directories in dune packages

  • Santiago Ospina De Los Ríos changed title from Don't register include directories in dune packages to Don't register include directories in dune registry of packages

    changed title from Don't register include directories in dune packages to Don't register include directories in dune registry of packages

  • changed the description

  • Simon Praetorius resolved all threads

    resolved all threads

  • added 1 commit

    Compare with previous version

  • Simon Praetorius approved this merge request

    approved this merge request

  • Ok, everything seems to be fine. I will merge.

  • mentioned in commit 9142c21b

  • It could be that this MR caused #394 (closed). Without testing locally, it seems to me that the precompiled python libraries were passing the directories in ${module}_INCLUDE_DIRS via the registered package modules with the extractCompiler.cc target. So maybe we were too quick to merge this without properly testing in the python side. So the good news is that we don't need to back port, but the bad news is that we may need to revert this change :(

  • mentioned in commit c074f7a2

  • mentioned in merge request !1463 (closed)

  • mentioned in issue #394 (closed)

  • Mathis Kelm mentioned in merge request !1526 (closed)

    mentioned in merge request !1526 (closed)

  • mentioned in commit 1d66aba3

  • Santiago Ospina De Los Ríos mentioned in merge request !1528

    mentioned in merge request !1528

  • mentioned in commit f6ae3cf4

  • mentioned in commit ad45bca9

  • Please register or sign in to reply
    Loading