Opened 6 years ago

#47579 new enhancement

cmake portgroup: an option to specify non-default location of CMakeLists.txt

Reported by: mojca (Mojca Miklavec) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: michaelld (Michael Dickens), ryandesign (Ryan Schmidt)
Port:

Description

I came across a port (submission) where CMakeLists.txt is not in the top dir (#38921). As a consequence one must introduce a fix like this one:

configure.post_args ${worksrcpath}/build

(or change a bunch of other variables to achieve the same goal).

While I consider this to be some kind of a "bug", it would be nice if we had some explicit setting rather than having to overwrite configure.post_args (even though both would currently achieve the same).

Now that you have already introduced a new option (r134128) like

  • cmake.build_dir

would it perhaps make sense to add also cmake.<someother>_dir to denote the directory where CMakeLists.txt is located in case it's not default?

Change History (0)

Note: See TracTickets for help on using tickets.