mirror of
https://github.com/triqs/dft_tools
synced 2025-01-09 12:44:03 +01:00
grep app4triqs version from latest annotated git tag
This commit is contained in:
parent
0fb5342c6b
commit
7f0e6283f0
@ -1,5 +1,5 @@
|
|||||||
# Version number
|
# Version number from the latest annotated git tag
|
||||||
set(APP4TRIQS_VERSION "1.5")
|
execute_process(COMMAND git describe --abbrev=0 OUTPUT_VARIABLE APP4TRIQS_VERSION)
|
||||||
|
|
||||||
# Start configuration
|
# Start configuration
|
||||||
cmake_minimum_required(VERSION 2.8.12)
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
@ -18,8 +18,8 @@ set(BUILD_SHARED_LIBS OFF)
|
|||||||
add_definitions(-Wall)
|
add_definitions(-Wall)
|
||||||
|
|
||||||
# Load Dependencies
|
# Load Dependencies
|
||||||
find_package(TRIQS ${APP4TRIQS_VERSION} EXACT REQUIRED)
|
find_package(TRIQS 1.5 REQUIRED)
|
||||||
find_package(Cpp2Py ${APP4TRIQS_VERSION} EXACT REQUIRED)
|
find_package(Cpp2Py 1.5 REQUIRED)
|
||||||
|
|
||||||
# Default Install directory to TRIQS_ROOT if not given or invalid.
|
# Default Install directory to TRIQS_ROOT if not given or invalid.
|
||||||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OR (NOT IS_ABSOLUTE ${CMAKE_INSTALL_PREFIX}))
|
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OR (NOT IS_ABSOLUTE ${CMAKE_INSTALL_PREFIX}))
|
||||||
|
Loading…
Reference in New Issue
Block a user