diff --git a/cmake/scripts/RootUseFile.cmake.in b/cmake/scripts/RootUseFile.cmake.in index 045926d836a79..a4197441819f6 100644 --- a/cmake/scripts/RootUseFile.cmake.in +++ b/cmake/scripts/RootUseFile.cmake.in @@ -9,4 +9,4 @@ link_directories(${ROOT_LIBRARY_DIR}) add_definitions(${ROOT_DEFINITIONS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ROOT_CXX_FLAGS}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ROOT_C_FLAGS}") -set(CMAKE_fortran_FLAGS "${CMAKE_fortran_FLAGS} ${ROOT_fortran_FLAGS}") +set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${ROOT_fortran_FLAGS}") diff --git a/etc/cmake/RootUseFile.cmake b/etc/cmake/RootUseFile.cmake index b9a8e34e822c0..f931ad3384f35 100644 --- a/etc/cmake/RootUseFile.cmake +++ b/etc/cmake/RootUseFile.cmake @@ -6,4 +6,4 @@ link_directories(${ROOT_LIBRARY_DIR}) add_definitions(${ROOT_DEFINITIONS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ROOT_CXX_FLAGS}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ROOT_C_FLAGS}") -set(CMAKE_fortran_FLAGS "${CMAKE_fortran_FLAGS} ${ROOT_fortran_FLAGS}") +set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${ROOT_fortran_FLAGS}")