~dscharrer/innoextract/master

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Daniel Scharrer
  • Date: 2020-05-25 20:34:45 UTC
  • Revision ID: git-v1:89d75e45cb43b641b78a1d8dbbad209171d8c9c1
CMake: Check that README.md is up to date

Show diffs side-by-side

added added

removed removed

Lines of Context:
523
523
        1                             "builtin"
524
524
)
525
525
message("")
 
526
 
 
527
if(DEVELOPER)
 
528
        file(READ "README.md" readme)
 
529
        parse_version_file("VERSION" "VERSION")
 
530
        string(REPLACE "${VERSION_2}" "" readme_without_version "${readme}")
 
531
        if(readme_without_version STREQUAL readme)
 
532
                message(WARNING "Could not find '${VERSION_2}' in README.md.")
 
533
        endif()
 
534
endif()