build VTK and pugixml from source using CMAKE
Hi, I have a working cross platform (windows and linux) application which already uses pugixml. pugixml is built from source and statically linked using CMAKE. Recently, I am trying to add some graphing functionality via VTK and CMAKE, but when I add_subdirectory the VTK, following code
target_compile_features(pugixml PUBLIC cxx_std_11) endif ()
in 'VTK\ThirdParty\pugixml\vtkpugixml\CMakeLists.txt' generates the following error message :
CMake Error at libs/VTK/ThirdParty/pugixml/vtkpugixml/CMakeLists.txt:227 (target_compile_features): target_compile_features may only set INTERFACE properties on INTERFACE targets pugixml /VTK/ThirdParty/pugixml/vtkpugixml/CMakeLists.txt 227
Is it possible to build both libraries side by side from source? I am rather new to CMAKE sorcery.
P.S. Final system that builds and runs the app is not connected to the internet, so apt-get or vcpkg, ... are not available.