Skip to content

Commit

Permalink
Consolidate version number to CITATION.cff file
Browse files Browse the repository at this point in the history
  • Loading branch information
godotalgorithm committed Jun 20, 2022
1 parent 9eea146 commit 5edb088
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
# Using Cmake version 3.13 for target_link_options
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

# Read version number
file(READ "CITATION.cff" CITATION)
string(REGEX MATCH "[^-]version: ([0-9\.]*)" _ ${CITATION})

# Specify project name & programming languages
project(openmopac VERSION 22.0.2 LANGUAGES Fortran)
project(openmopac VERSION ${CMAKE_MATCH_1} LANGUAGES Fortran)

# Enable C language support for MKL? (C is only needed for auto-detection of MKL by find_package)
option(ENABLE_MKL "Turn on C language support for MKL" ON)
Expand Down

0 comments on commit 5edb088

Please sign in to comment.