Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 16, 2009, 4:21:01 PM (15 years ago)
Author:
rgrieder
Message:

Fixed msvc build: I had to link the plugins as SHARED instead of MODULE because CMake doesn't allow modules to be linked against another module.
The reason why it did work after all was because the quest library was built before overlays causing CMake to link against whatever it found under the name "overlays" in the end (which was of course the output file instead of the CMake representation of a library). Since msvc never links against dlls but rather against the corresponding *.lib file things got completely busted.

Also added the proposed fix for the PATH variable (successfully tested under Windows by deleting the overlays.plugin file).

File:
1 edited

Legend:

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

    r5647 r5649  
    282282            boost::filesystem::path searchpath = this->configuration_->pluginPath_;
    283283
     284            // Add that path to the PATH variable in case a plugin depends on another one
     285            std::string pathVariable = getenv("PATH");
     286            putenv(("PATH=" + pathVariable + ";" + configuration_->pluginPath_.string()).c_str());
     287
    284288            boost::filesystem::directory_iterator file(searchpath);
    285289            boost::filesystem::directory_iterator end;
Note: See TracChangeset for help on using the changeset viewer.