This PR permits to build matio-cpp when visit_struct is installed, but no CMake config for it is installed (for example as it happens when visit_struct is installed via vcpkg or by manually copying the headers).
Furthermore, I also fixed the logic of USE_SYSTEM_visit_struct, as as it was before this PR, even if the user explicitly set USE_SYSTEM_visit_struct, the build silently went back to the USE_SYSTEM_visit_struct set to OFF case, instead of giving an error.
This PR permits to build matio-cpp when visit_struct is installed, but no CMake config for it is installed (for example as it happens when visit_struct is installed via vcpkg or by manually copying the headers).
Furthermore, I also fixed the logic of
USE_SYSTEM_visit_struct
, as as it was before this PR, even if the user explicitly setUSE_SYSTEM_visit_struct
, the build silently went back to theUSE_SYSTEM_visit_struct
set toOFF
case, instead of giving an error.