Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cmake required version to 3.5
Browse files Browse the repository at this point in the history
This simplifies policy and version set up.
phcerdan committed Jul 31, 2018
1 parent 0593531 commit ca4fbba
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.5)
#To avoid OpenMP warning: https://gitlab.kitware.com/cmake/cmake/issues/17292
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
cmake_policy(SET CMP0054 NEW)
endif()

project(proxTV
DESCRIPTION "Toolbox for fast Total Variation proximity operators"
LANGUAGES C CXX
VERSION 3.2.1
)

# Set VERSION
# Since cmake v3.0 we can just give an option to project(proxTV VERSION 3.2.1 LANGUAGES C CXX)
set(proxTV_VERSION_MAJOR 3)
set(proxTV_VERSION_MINOR 2)
set(proxTV_VERSION_PATCH 1)
# set(proxTV_VERSION_TWEAK 0)
set(proxTV_VERSION "${proxTV_VERSION_MAJOR}.${proxTV_VERSION_MINOR}.${proxTV_VERSION_PATCH}")
message(STATUS "proxTV version: ${proxTV_VERSION}")

# External Dependencies: {{{

0 comments on commit ca4fbba

Please sign in to comment.