File: CompatibilityVersionFile-CXX_ABI.cmake.in

package info (click to toggle)
freespace2 24.0.2%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 43,188 kB
  • sloc: cpp: 583,107; ansic: 21,729; python: 1,174; sh: 464; makefile: 248; xml: 181
file content (29 lines) | stat: -rw-r--r-- 1,014 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@GCVF_PREVIOUS_FILE@

if(MSVC)
    if(NOT "${MSVC_VERSION}" STREQUAL "@MSVC_VERSION@")
        set(PACKAGE_VERSION "${PACKAGE_VERSION} (@GCVF_WIN_CXXLAYOUT@)")
        set(PACKAGE_VERSION_UNSUITABLE TRUE)
        return()
    endif()
endif()

macro(_gcvf_compute_cxxabi _var _compilerid _compilerver)
    set(${_var})
    if("${_compilerid}" STREQUAL "GNU" AND NOT ("${_compilerver}" STREQUAL ""))
        if("${_compilerver}" VER_LESS 5.0)
            # This is pre-gcc5, not compatible with post-gcc5
            set(${_var} "g++ < 5.0")
        else()
            set(${_var} "g++ >= 5.0")
        endif()
    endif()
endmacro()
_gcvr_compute_cxxabi(_installed_cxx "@CMAKE_CXX_COMPILER_ID@" "@CMAKE_CXX_COMPILER_VERSION@")
_gcvr_compute_cxxabi(_current_cxx "${CMAKE_CXX_COMPILER_ID}" "${CMAKE_CXX_COMPILER_VERSION}")

# if(NOT "${_installed_cxx}" STREQUAL "${_current_cxx}")
#     set(PACKAGE_VERSION "${PACKAGE_VERSION} (${_installed_cxx})")
#     set(PACKAGE_VERSION_UNSUITABLE TRUE)
#     return()
# endif()