mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 21:39:09 -06:00
Only build before library target if there is any
This commit is contained in:
parent
022eb51c8b
commit
8d3b0fed71
@ -46,7 +46,9 @@ else ()
|
||||
# the target above gets built every time thanks to the "ALL" modifier,
|
||||
# but it must also be done before the main library so it can pick up
|
||||
# any changes it does.
|
||||
add_dependencies (${${project}_TARGET} update-version)
|
||||
if (${project}_TARGET)
|
||||
add_dependencies (${${project}_TARGET} update-version)
|
||||
endif ()
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user