Skip to content
Snippets Groups Projects
Commit a68f4f24 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Fixed to CMP0048 missing policy error. Fix found at Qucs/qucs#66.

Conflicts:
	CMakeLists.txt
parent 8afb4db9
No related branches found
No related tags found
No related merge requests found
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(MOOSE)
set(_MOOSE_VERSION_ "3.2" )
project(moose)
if(POLICY CMP0048)
cmake_policy(SET CMP0048 OLD )
endif(POLICY CMP0048)
# If from command line, version info is not passed, use the git to generate a
# version file. If GIT fails, use the previous known version.
find_program(GIT_EXEC "git")
message( STATUS "Looking for git ${GIT_EXEC}" )
if( (NOT MOOSE_VERSION) AND GIT_EXEC)
execute_process(
COMMAND ${GIT_EXEC} describe --tags --long
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE MOOSE_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif( )
message( STATUS "Building version ${MOOSE_VERSION}" )
# Options to pass down to moose-core
option(WITH_DOC "Build documentation" OFF)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment