renames
This commit is contained in:
15
modules/fc.cmake
Normal file
15
modules/fc.cmake
Normal file
@ -0,0 +1,15 @@
|
||||
enable_language(Fortran)
|
||||
|
||||
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/include/fortran)
|
||||
|
||||
if(NOT DEFINED CMAKE_Fortran_COMPILER_ID)
|
||||
message(FATAL_ERROR "CMAKE_Fortran_COMPILER_ID variable is not defined!")
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_Fortran_COMPILER_WORKS)
|
||||
message(FATAL_ERROR "CMAKE_Fortran_COMPILER_WORKS is false!")
|
||||
endif()
|
||||
|
||||
if(DEFINED EXTRA_Fortran_FLAGS)
|
||||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${EXTRA_Fortran_FLAGS}")
|
||||
endif()
|
Reference in New Issue
Block a user