https://github.com/Kitware/CMake
Revision 6e149e1591249d4666b4f7eefd58f414c4b5d973 authored by Brad King on 10 February 2014, 16:24:54 UTC, committed by CMake Topic Stage on 10 February 2014, 16:24:54 UTC
6d85a6a6 add_library: Issue better diagnostic for INTERFACE GLOBAL signature.
770245e9 add_library: Test invalid GLOBAL INTERFACE signature.

2 parent s e180c1d + 6d85a6a
Raw File
Tip revision: 6e149e1591249d4666b4f7eefd58f414c4b5d973 authored by Brad King on 10 February 2014, 16:24:54 UTC
Merge topic 'interface-library-signatures'
Tip revision: 6e149e1
CMakeVersionCompute.cmake
# Load version number components.
include(${CMake_SOURCE_DIR}/Source/CMakeVersion.cmake)

# Releases define a small tweak level.
if("${CMake_VERSION_TWEAK}" VERSION_LESS 20000000)
  set(CMake_VERSION_IS_RELEASE 1)
  set(CMake_VERSION_SOURCE "")
else()
  set(CMake_VERSION_IS_RELEASE 0)
  include(${CMake_SOURCE_DIR}/Source/CMakeVersionSource.cmake)
endif()

# Compute the full version string.
set(CMake_VERSION ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH})
if(${CMake_VERSION_TWEAK} GREATER 0)
  set(CMake_VERSION ${CMake_VERSION}.${CMake_VERSION_TWEAK})
endif()
if(CMake_VERSION_RC)
  set(CMake_VERSION ${CMake_VERSION}-rc${CMake_VERSION_RC})
endif()
if(CMake_VERSION_SOURCE)
  set(CMake_VERSION ${CMake_VERSION}-${CMake_VERSION_SOURCE})
endif()
back to top