Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2018, 1:43:20 AM (7 years ago)
Author:
landauf
Message:

with the latest CMake there are a lot of warnings about the usage of CMP0026. therefore the naming and content of the module/plugin-files had to be changed:
old: <library-filename>.module with content <target-name>
new: <target-name>.module with content <library-filename>
this seems to comply better with cmake and works equally well in c++ (with some small adjustments).
reference: https://cmake.org/cmake/help/v3.0/policy/CMP0026.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/Core.cc

    r11691 r11692  
    281281        orxout(internal_info) << "Loading modules:" << endl;
    282282
    283         const std::vector<std::string>& modulePaths = ApplicationPaths::getInstance().getModulePaths();
    284         for (const std::string& modulePath : modulePaths)
    285         {
    286             ModuleInstance* module = new ModuleInstance(modulePath);
     283        const std::map<std::string, std::string>& modulePaths = ApplicationPaths::getInstance().getModulePaths();
     284        for (const std::pair<std::string, std::string>& modulePath : modulePaths)
     285        {
     286            ModuleInstance* module = new ModuleInstance(modulePath.second);
    287287            this->loadModule(module);
    288288            this->modules_.push_back(module);
Note: See TracChangeset for help on using the changeset viewer.