MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0003144 | CMake | CMake | public | 2006-04-19 06:10 | 2008-01-15 21:12 | |||||
Reporter | betsubetsu | |||||||||
Assigned To | Brad King | |||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | ||||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0003144: cmake fails when fortran modules are saved in an otehr directory that the default one. | |||||||||
Description | In fortran example of cmake (cmake-2.2.3/Tests/Fortran), I added the following line in CMakeLists.txt which tells the compiler to put the modules in directory ./modules: SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -module ./modules") after generating the makefile with cmake, i compile and gets this error message: [...] Building Fortran object CMakeFiles/test_module.dir/test_module_interface.o /opt/intel/fc_80/bin/ifort -o CMakeFiles/test_module.dir/test_module_interface.o -module ./modules -c /home/betsubetsu/cmake-2.2.3/Tests/Fortran/test_module_interface.f90 /home/betsubetsu/cmake/bin/cmake -E cmake_copy_f90_mod TEST_MODULE test_module.mod.stamp Error copying Fortran module "TEST_MODULE". Tried "TEST_MODULE.mod" and "test_module.mod". make[3]: *** [CMakeFiles/test_module.dir/test_module_interface.o.provides.build] Error 1 make[3]: Leaving directory `/home/betsubetsu/cmake-2.2.3/Tests/Fortran' make[2]: *** [CMakeFiles/test_module.dir/test_module_interface.o.provides] Error 2 make[2]: Leaving directory `/home/betsubetsu/cmake-2.2.3/Tests/Fortran' make[1]: *** [CMakeFiles/test_module.dir/all] Error 2 make[1]: Leaving directory `/home/betsubetsu/cmake-2.2.3/Tests/Fortran' make: *** [all] Error 2 If i don't put the option '-modules' then it works fine. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2007-10-03 16:28 | Brad King | Relationship added | related to 0005809 | |||||||
2008-01-15 21:12 | Brad King | Status | assigned => closed | |||||||
2008-01-15 21:12 | Brad King | Note Added: 0010161 | ||||||||
2008-01-15 21:12 | Brad King | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|