Skip to content
  • Matthew Woehlke's avatar
    Modules: Use new SOURCES_FROM_* try_compile (2/2) · 41f7b116
    Matthew Woehlke authored
    Modify some additional modules that ship with CMake to use the new
    SOURCES_FROM_* arguments to try_compile / try_run as added by commits
    cb14ae2b (try_compile: Add SOURCE_FROM_{ARG,VAR}, 2022-09-21) and
    611d8017 (try_compile: Add SOURCE_FROM_FILE, 2022-09-22). This covers
    modules that need to read and alter a template source file, which were
    not addressed in the previous commit.
    
    Note that FindOpenACC.cmake does not actually need configure_file
    functionality; it appears to have inherited the (gratuitous) use thereof
    from FindOpenMP.cmake, with which its code bears significant similarity.
    41f7b116