duplication of cpp_definitions
There is a duplication of the function in checkfortranpreprocessor.cmake
function(cpp_definitions defName value cacheString)
option(CMAKE_${defName} ${cacheString} ${value})
if (CMAKE_${defName})
add_compile_definitions(${defName})
endif()
endfunction()
and in utils.cmake
function(cpp_definitions defName defCMakeName value cacheString)
set(${defCMakeName} "${value}" CACHE STRING "${cacheString}")
if (${defCMakeName})
add_definitions("${defName}")
endif()
endfunction()
I think the first one is more precise but am not really an expert on this. Why is it called cpp_definitions?