2012/1/21 Dominik Szczerba <[email protected]>: >>>> You might use an EXECUTE_PROCESS() command at the beginning of your >>>> CMakeLists.txt to unload the modules, and another EXECUTE_PROCESS() >>>> at the end to reload them. > > Will try, thanks for the hint! > >>> Doesn't the module switching involve setting environment variables? You're >>> going to have to do that before invoking CMake aren't you? > > No, it means calling something like "module un/load XXXX" from command line.
Dominik, Running something from the command line does not mean it doesn't change the environment. Would you try $ env > env1.txt $ module unload sysmodule_you_dont_want $ env > env2.txt $ cmake -E compare_files env1.txt env2.txt I'd be surprise if nothing changed but I may be wrong. -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
