Merge pull request #4733 from akva2/fix_superbuild_generated_header

fixed: parallel super builds
This commit is contained in:
Bård Skaflestad 2023-06-30 17:25:58 +02:00 committed by GitHub
commit e36992cb90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,6 +493,9 @@ foreach(OBJ ${COMMON_MODELS} ${FLOW_MODELS} ${FLOW_VARIANT_MODELS})
if(TARGET fmt::fmt)
target_link_libraries(flow_lib${OBJ} fmt::fmt)
endif()
if(TARGET opmcommon AND CMAKE_GENERATOR MATCHES "Makefiles")
add_dependencies(flow_lib${OBJ} opmcommon)
endif()
opm_add_test(flow_${OBJ}
ONLY_COMPILE
SOURCES