llvm.org GIT mirror llvm / fde8237
add LLVM_VERSION_MAJOR and _MINOR defines This is useful for clients that want to maintain compatibility across multiple releases of LLVM. Currently users like Klee and Mesa all have to roll their own 'parse llvm-config --version output and generate defines' solution. Also reuse the new macros so that version information is less redundant/likely to fall out of sync again in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150405 91177308-0d34-0410-b5e6-96231b3b80d8 Dylan Noblesmith 7 years ago
8 changed file(s) with 45 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
99 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
1010 )
1111
12 set(PACKAGE_VERSION "3.1svn")
12 set(LLVM_VERSION_MAJOR 3)
13 set(LLVM_VERSION_MINOR 1)
14
15 set(PACKAGE_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}svn")
1316
1417 set_property(GLOBAL PROPERTY USE_FOLDERS ON)
1518
410413 # TODO: make and install documentation.
411414
412415 set(CPACK_PACKAGE_VENDOR "LLVM")
413 set(CPACK_PACKAGE_VERSION_MAJOR 3)
414 set(CPACK_PACKAGE_VERSION_MINOR 1)
416 set(CPACK_PACKAGE_VERSION_MAJOR ${LLVM_VERSION_MAJOR})
417 set(CPACK_PACKAGE_VERSION_MINOR ${LLVM_VERSION_MINOR})
415418 add_version_info_from_vcs(CPACK_PACKAGE_VERSION_PATCH)
416419 include(CPack)
417420
3131 dnl Initialize autoconf and define the package name, version number and
3232 dnl address for reporting bugs.
3333 AC_INIT([LLVM],[3.1svn],[http://llvm.org/bugs/])
34 AC_DEFINE([LLVM_VERSION_MAJOR], [3], [Major version of the LLVM API])
35 AC_DEFINE([LLVM_VERSION_MINOR], [1], [Minor version of the LLVM API])
3436
3537 dnl Provide a copyright substitution and ensure the copyright notice is included
3638 dnl in the output of --version option of the generated configure script.
0 # This file provides information and services to the final user.
11
2 set(LLVM_VERSION_MAJOR @LLVM_VERSION_MAJOR@)
3 set(LLVM_VERSION_MINOR @LLVM_VERSION_MINOR@)
24 set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
35
46 set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
18971897
18981898
18991899
1900 cat >>confdefs.h <<\_ACEOF
1901 #define LLVM_VERSION_MAJOR 3
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<\_ACEOF
1906 #define LLVM_VERSION_MINOR 1
1907 _ACEOF
1908
1909
19001910 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
19011911
19021912
1045210462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1045310463 lt_status=$lt_dlunknown
1045410464 cat > conftest.$ac_ext <
10455 #line 10456 "configure"
10465 #line 10466 "configure"
1045610466 #include "confdefs.h"
1045710467
1045810468 #if HAVE_DLFCN_H
616616 /* Installation prefix directory */
617617 #cmakedefine LLVM_PREFIX "${LLVM_PREFIX}"
618618
619 /* Major version of the LLVM API */
620 #cmakedefine LLVM_VERSION_MAJOR ${LLVM_VERSION_MAJOR}
621
622 /* Minor version of the LLVM API */
623 #cmakedefine LLVM_VERSION_MINOR ${LLVM_VERSION_MINOR}
624
619625 /* Define if the OS needs help to load dependent libraries for dlopen(). */
620626 #cmakedefine LTDL_DLOPEN_DEPLIBS ${LTDL_DLOPEN_DEPLIBS}
621627
614614 /* Installation prefix directory */
615615 #undef LLVM_PREFIX
616616
617 /* Major version of the LLVM API */
618 #undef LLVM_VERSION_MAJOR
619
620 /* Minor version of the LLVM API */
621 #undef LLVM_VERSION_MINOR
622
617623 /* Define if the OS needs help to load dependent libraries for dlopen(). */
618624 #undef LTDL_DLOPEN_DEPLIBS
619625
105105 /* Installation prefix directory */
106106 #cmakedefine LLVM_PREFIX "${LLVM_PREFIX}"
107107
108 /* Major version of the LLVM API */
109 #cmakedefine LLVM_VERSION_MAJOR ${LLVM_VERSION_MAJOR}
110
111 /* Minor version of the LLVM API */
112 #cmakedefine LLVM_VERSION_MINOR ${LLVM_VERSION_MINOR}
113
108114 #endif
105105 /* Installation prefix directory */
106106 #undef LLVM_PREFIX
107107
108 /* Major version of the LLVM API */
109 #undef LLVM_VERSION_MAJOR
110
111 /* Minor version of the LLVM API */
112 #undef LLVM_VERSION_MINOR
113
108114 #endif