Commit fe5661e6 authored by Eric Cano's avatar Eric Cano
Browse files

Made sure cmake loads the version information in all cases (including PackageOnly).

parent dc847990
......@@ -71,6 +71,9 @@ else (NOT DEFINED SKIP_UNIT_TESTS)
message (STATUS "Already set: SKIP_UNIT_TESTS=${SKIP_UNIT_TESTS}")
endif (NOT DEFINED SKIP_UNIT_TESTS)
#Load version information in all cases.
include(cmake/CTAVersions.cmake)
IF(DEFINED PackageOnly)
message (STATUS "Running CMake in package-only mode")
set(COMPILE_PACKAGING "1")
......@@ -104,7 +107,6 @@ ELSE(DEFINED PackageOnly)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(cmake/CTAInstallationFunctions.cmake)
include(cmake/CTAVersions.cmake)
include(GNUInstallDirs)
set(CMAKE_INSTALL_PREFIX "/")
......
Supports Markdown
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