Remove SET_CMAKE_MODULE_PATH

Bug #874676 reported by Chris Hillery
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Opinion
Medium
Chris Hillery

Bug Description

This macro wasn't in Zorba 2.0. Therefore, using it in modules means that those modules require Zorba 2.1 for building, even though they (as far as I know) don't need it for running.

There will probably be cases in the future where such dependencies are un-avoidable, but in this case SET_CMAKE_MODULE_PATH is at best a small convenience, so I don't think it's worth the cost. In fact, I think it's actually kind of a bad idea, because it enforces a directory naming convention on module authors.

Chris Hillery (ceejatec)
Changed in zorba:
importance: Undecided → Medium
assignee: nobody → Gabriel Petrovay (gabipetrovay)
Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

Will this still be a problem after Zorba 2.1 is published? (Which should happen any time now)

This feature/convenience is optional. Module Authors are not required to use it at all if they want.

There is a better solution for this:

One can enhance the macro with two optional parameters that, if not defined, it will have the default values:
${PROJECT_SOURCE_DIR}/cmake_modules
${PROJECT_SOURCE_DIR}/cmake_modules/Windows

With those two parameters the developer can provide whatever path he wants to his cmake modules.

Opinions?

Changed in zorba:
assignee: Gabriel Petrovay (gabipetrovay) → Chris Hillery (ceejatec)
status: New → Opinion
Revision history for this message
Chris Hillery (ceejatec) wrote :

It's still a problem after 2.1 is released, because the modules will depend on 2.1 and won't be able to be built against 2.0. So they'll all need to be upgraded to list that dependency, even though in most cases they would work against 2.0 if it weren't for their use of this macro.

It's probably not the most important problem we have facing us, I just think it sets a bad precedent.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.