Embarcadero: Building VTK 8.2 with RAD Studio 11.2
I am using VTK 7.1.1 with RAD Studio 11.2. That works very well.
Now I am trying to build VTK 8.2.0 with RAD Studio 11.2. The RAD Studio 64bit compiler bcc64 is based on Clang 5.0.2. In general, the compiler should be able to compile this VTK version - right?
Pressing the Configure button in CMake, gives after a while the following error:
CMake Error at CMake/vtkModuleMacros.cmake:586 (target_compile_features): target_compile_features no known features for CXX compiler
"Embarcadero"
version 7.60.38037.
Call Stack (most recent call first): CMake/vtkModuleMacros.cmake:660 (vtk_add_library)
Common/Core/CMakeLists.txt:399 (vtk_module_library)"
Here the correspoding code in vtkModuleMacros.cmake
function(vtk_add_library name)
add_library(${name} ${ARGN} ${headers})
# We use compile features to specify that VTK requires C++11.
# We request a series of C++11 features that will conform to VTK's
# desired minimum requirements.
# - cxx_override enforces Intel 14+, and GCC 4.7+
# - cxx_nullptr as this a hard requirement for all compiler
# CMake 3.8+ introduces the concept of meta language compiler features, and
# also introduces the first compilers that are only meta language feature
# aware. So if we have CMake 3.8+ we will also set the meta feature as
# a private flag ( private so we don't force consumers to also use 3.8+ )
if(NOT VTK_IGNORE_CMAKE_CXX11_CHECKS)
target_compile_features(${name} PUBLIC cxx_nullptr cxx_override)
if(NOT CMAKE_VERSION VERSION_LESS 3.8)
target_compile_features(${name} PRIVATE cxx_std_11)
endif()
endif()
if(NOT ARGV1 STREQUAL OBJECT)
vtk_target(${name})
endif()
endfunction()
I think the compiler is not recognized properly. Can anyone help? Any hint is welcome.