|
@@ -93,11 +93,14 @@ macro(_ipo_run_language_check language)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${language}" "C" is_c)
|
|
string(COMPARE EQUAL "${language}" "C" is_c)
|
|
|
string(COMPARE EQUAL "${language}" "CXX" is_cxx)
|
|
string(COMPARE EQUAL "${language}" "CXX" is_cxx)
|
|
|
|
|
+ string(COMPARE EQUAL "${language}" "Fortran" is_fortran)
|
|
|
|
|
|
|
|
if(is_c)
|
|
if(is_c)
|
|
|
set(copy_sources foo.c main.c)
|
|
set(copy_sources foo.c main.c)
|
|
|
elseif(is_cxx)
|
|
elseif(is_cxx)
|
|
|
set(copy_sources foo.cpp main.cpp)
|
|
set(copy_sources foo.cpp main.cpp)
|
|
|
|
|
+ elseif(is_fortran)
|
|
|
|
|
+ set(copy_sources foo.f main.f)
|
|
|
else()
|
|
else()
|
|
|
message(FATAL_ERROR "Language not supported")
|
|
message(FATAL_ERROR "Language not supported")
|
|
|
endif()
|
|
endif()
|
|
@@ -204,12 +207,6 @@ function(check_ipo_supported)
|
|
|
endif()
|
|
endif()
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
- list(FIND languages "Fortran" result)
|
|
|
|
|
- if(NOT result EQUAL -1)
|
|
|
|
|
- _ipo_not_supported("Fortran is not supported")
|
|
|
|
|
- return()
|
|
|
|
|
- endif()
|
|
|
|
|
-
|
|
|
|
|
if(NOT _CMAKE_IPO_SUPPORTED_BY_CMAKE)
|
|
if(NOT _CMAKE_IPO_SUPPORTED_BY_CMAKE)
|
|
|
_ipo_not_supported("CMake doesn't support IPO for current compiler")
|
|
_ipo_not_supported("CMake doesn't support IPO for current compiler")
|
|
|
return()
|
|
return()
|