Merge pull request #5016 from akva2/fix_gen_headers_superbuild_ninja

fixed: also add dependency with ninja generator
This commit is contained in:
Bård Skaflestad
2023-11-22 12:51:05 +01:00
committed by GitHub
+1 -1
View File
@@ -556,7 +556,7 @@ foreach(OBJ ${COMMON_MODELS} ${FLOW_MODELS} ${FLOW_VARIANT_MODELS})
if(TARGET fmt::fmt) if(TARGET fmt::fmt)
target_link_libraries(flow_lib${OBJ} fmt::fmt) target_link_libraries(flow_lib${OBJ} fmt::fmt)
endif() endif()
if(TARGET opmcommon AND CMAKE_GENERATOR MATCHES "Makefiles") if(TARGET opmcommon)
add_dependencies(flow_lib${OBJ} opmcommon) add_dependencies(flow_lib${OBJ} opmcommon)
endif() endif()
opm_add_test(flow_${OBJ} opm_add_test(flow_${OBJ}