Material: fix windows debug builds

Material: fix cmake linking of yaml-cpp<0.7.0
write version in final report
This commit is contained in:
Adrián Insaurralde Avalos
2024-03-27 16:57:05 -04:00
committed by Chris Hennes
parent 5d3de598e7
commit 0910d7e814
2 changed files with 11 additions and 1 deletions

View File

@@ -30,9 +30,18 @@ include_directories(
)
list(APPEND Material_LIBS
${QtConcurrent_LIBRARIES}
${YAML_CPP_LIBRARIES}
)
if(yaml-cpp_VERSION VERSION_LESS 0.7.0)
list(APPEND Material_LIBS
${YAML_CPP_LIBRARIES}
)
else()
list(APPEND Material_LIBS
yaml-cpp::yaml-cpp
)
endif()
generate_from_xml(Array2DPy)
generate_from_xml(Array3DPy)
generate_from_xml(MaterialManagerPy)