MantisBT - CMake
View Issue Details
0014231CMakeCMakepublic2013-06-19 10:302013-11-04 09:33
Andy Bauer 
 
lowminoralways
closedwon't fix 
LinuxUbuntu12.04
CMake 2.8.11 
 
0014231: external project doesn't pass CMAKE_Fortran_COMPILER to subprojects
When building an external project (ExternalProject_Add) that depends on Fortran, the CMAKE_Fortran_COMPILER doesn't get passed to the external project. I would guess that the other Fortran build options aren't passed either.
1) Download the ParaView superbuild repo at http://review.source.kitware.com/#/t/2904/ [^]
2) Set the Fortran compiler to a non-default value.
3) Enable the nektar reader plugin (ENABLE_nektarreader) and ParaView (ENABLE_paraview)
4) Configure and build and note that in the paraview/src/paraview-build that there will be the default Fortran compiler that CMake finds.
No tags attached.
Issue History
2013-06-19 10:30Andy BauerNew Issue
2013-06-20 13:46Brad KingNote Added: 0033358
2013-06-20 13:46Brad KingStatusnew => resolved
2013-06-20 13:46Brad KingResolutionopen => won't fix
2013-11-04 09:33Robert MaynardNote Added: 0034375
2013-11-04 09:33Robert MaynardStatusresolved => closed

Notes
(0033358)
Brad King   
2013-06-20 13:46   
ExternalProject_Add doesn't pass any language's compiler to the external project by default. Selecting a non-default C or C++ compiler in the outer project will not propagate either. It is up to your calls to pass the compilers through CMAKE_FLAGS if you want to propagate them.
(0034375)
Robert Maynard   
2013-11-04 09:33   
Closing resolved issues that have not been updated in more than 4 months.