1@GCVF_PREVIOUS_FILE@
2
3if(MSVC)
4    if(NOT "${MSVC_VERSION}" STREQUAL "@MSVC_VERSION@")
5        set(PACKAGE_VERSION "${PACKAGE_VERSION} (@GCVF_WIN_CXXLAYOUT@)")
6        set(PACKAGE_VERSION_UNSUITABLE TRUE)
7        return()
8    endif()
9endif()
10
11macro(_gcvf_compute_cxxabi _var _compilerid _compilerver)
12    set(${_var})
13    if("${_compilerid}" STREQUAL "GNU" AND NOT ("${_compilerver}" STREQUAL ""))
14        if("${_compilerver}" VER_LESS 5.0)
15            # This is pre-gcc5, not compatible with post-gcc5
16            set(${_var} "g++ < 5.0")
17        else()
18            set(${_var} "g++ >= 5.0")
19        endif()
20    endif()
21endmacro()
22_gcvr_compute_cxxabi(_installed_cxx "@CMAKE_CXX_COMPILER_ID@" "@CMAKE_CXX_COMPILER_VERSION@")
23_gcvr_compute_cxxabi(_current_cxx "${CMAKE_CXX_COMPILER_ID}" "${CMAKE_CXX_COMPILER_VERSION}")
24
25# if(NOT "${_installed_cxx}" STREQUAL "${_current_cxx}")
26#     set(PACKAGE_VERSION "${PACKAGE_VERSION} (${_installed_cxx})")
27#     set(PACKAGE_VERSION_UNSUITABLE TRUE)
28#     return()
29# endif()
30