mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-01 17:03:06 -06:00
move addition of flow_blackoil_float to targets hook
respect the BUILD_FLOW_VARIANTS option
This commit is contained in:
1 parent
cc98d6048f
commit
50bb7defd0
1 file changed
+21
-13
+21
-13
@@ -661,8 +661,28 @@ macro(opm-simulators_targets_hook)
|
||||
${FLOWEXP_COMPONENTS_SOURCES}
|
||||
$<TARGET_OBJECTS:moduleVersion>
|
||||
)
|
||||
|
||||
if(BUILD_FLOW_FLOAT_VARIANTS)
|
||||
opm_add_test(flow_blackoil_float
|
||||
ONLY_COMPILE
|
||||
ALWAYS_ENABLE
|
||||
DEPENDS
|
||||
opmsimulators
|
||||
LIBRARIES
|
||||
opmsimulators
|
||||
SOURCES
|
||||
flow/flow_blackoil_float_main.cpp
|
||||
$<TARGET_OBJECTS:moduleVersion>
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_FLOW_VARIANTS)
|
||||
set_target_properties(flowexp_comp PROPERTIES EXCLUDE_FROM_ALL ON)
|
||||
set_target_properties(
|
||||
flowexp_comp
|
||||
flow_blackoil_float
|
||||
PROPERTIES
|
||||
EXCLUDE_FROM_ALL ON
|
||||
)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
@@ -860,15 +880,3 @@ if (BUILD_FLOW)
|
||||
install(TARGETS flow DESTINATION bin)
|
||||
opm_add_bash_completion(flow)
|
||||
endif()
|
||||
|
||||
if(BUILD_FLOW_FLOAT_VARIANTS)
|
||||
opm_add_test(flow_blackoil_float
|
||||
ONLY_COMPILE
|
||||
ALWAYS_ENABLE
|
||||
DEFAULT_ENABLE_IF ${FLOW_DEFAULT_ENABLE_IF}
|
||||
DEPENDS opmsimulators
|
||||
LIBRARIES opmsimulators
|
||||
SOURCES
|
||||
flow/flow_blackoil_float_main.cpp
|
||||
$<TARGET_OBJECTS:moduleVersion>)
|
||||
endif()
|
||||
Reference in new issue
Block a user