Looks for the fortran executable when Trilinos_ENABLE_Fortran=OFF
Created by: yurivict
Building with these arguments:
-DTrilinos_ENABLE_Fortran:BOOL=OFF \
-DTrilinos_ENABLE_ALL_PACKAGES=ON \
-DTPL_ENABLE_BLAS=OFF \
-DTPL_ENABLE_Netcdf=ON \
-DX11_LIBRARY_DIRS:STRING=${LOCALBASE}/lib \
-DBUILD_SHARED_LIBS:BOOL=ON
It fails in the end:
Set up for creating a distribution ...
Finished configuring Trilinos!
-- Configuring done
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_Fortran_LINK_EXECUTABLE
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_Fortran_LINK_EXECUTABLE
If fortran is disabled, it should disable all packages that require the fortran executable, it shouldn't fail like this. Also, removing X11_LIBRARY_DIRS=${LOCALBASE}/lib
removes this error too.