premake.path better way to add path in system.lua
to add support for libraries and modules to premake manager, the modules and libraries dir have to be added to the premake.path variable. this is done by auto generating a premake-system.lua script automaticaly.
---WARNING this file was generated by premake-manager-cli!!!
---change at your own risk!
premake.path = premake.path..";"..path.join(_MAIN_SCRIPT_DIR, "modules")
premake.path = premake.path..";"..path.join(_MAIN_SCRIPT_DIR, "libraries")
require "cmake"
What are you trying to do? i think there is a build in way to do this but can't find it
Anything else we should know? the premake-registry i have been working on is now live here. How would i add this to the premake docs?
(You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to issues like these!)
I'm not sure what you're asking for help with here?
If there is a cleaner way to do this:
premake.path = premake.path..";"..path.join(_MAIN_SCRIPT_DIR
@samsinsane
Not that I'm aware of.
@samsinsane thinking about this a bit more, gave me the following realisation that i could also add global install dir. for modules and libraries. but how does premake then select the correct version when i locally have another version also for "unexplained reasons".
From memory Premake will use the first one it finds, best way to find out would be to test it out.
@samsinsane Closing as i haven't found a better answer. the registry is almost ready just need to finish up the work for the common registry.