1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
IF(NOT DEFINED VTK_COMPILER_HAS_FULL_SPECIALIZATION)
MESSAGE(STATUS "Checking support for full template specialization syntax")
TRY_COMPILE(VTK_COMPILER_HAS_FULL_SPECIALIZATION
${VTK_BINARY_DIR}/CMakeTmp
${VTK_CMAKE_DIR}/vtkTestFullSpecialization.cxx
OUTPUT_VARIABLE OUTPUT)
IF(VTK_COMPILER_HAS_FULL_SPECIALIZATION)
MESSAGE(STATUS "Checking support for full template specialization syntax -- yes")
SET(VTK_COMPILER_HAS_FULL_SPECIALIZATION 1 CACHE INTERNAL "Support for full template specialization syntax")
FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeOutput.log
"Determining if the C++ compiler supports full template specialization syntax "
"passed with the following output:\n"
"${OUTPUT}\n")
ELSE()
MESSAGE(STATUS "Checking support for full template specialization syntax -- no")
SET(VTK_COMPILER_HAS_FULL_SPECIALIZATION 0 CACHE INTERNAL "Support for full template specialization syntax")
FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log
"Determining if the C++ compiler supports full template specialization syntax "
"failed with the following output:\n"
"${OUTPUT}\n")
ENDIF()
ENDIF()
|