mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
changed: make boost::iostreams optional
only build benchmarks if it is found
This commit is contained in:
parent
f0cf4f9823
commit
bd30d159f6
@ -47,12 +47,14 @@ macro (opm_pack_stone test_exe)
|
||||
endmacro (opm_pack_stone)
|
||||
|
||||
# pack these cases which are alternatives in the code
|
||||
opm_pack_stone (upscale_relperm_benchmark)
|
||||
opm_pack_case (upscale_relperm_benchmark benchmark20)
|
||||
if(Boost_IOSTREAMS_FOUND)
|
||||
opm_pack_stone (upscale_relperm_benchmark)
|
||||
opm_pack_case (upscale_relperm_benchmark benchmark20)
|
||||
|
||||
if(INSTALL_BENCHMARKS)
|
||||
add_custom_target(benchmarks ALL DEPENDS upscale_relperm_benchmark)
|
||||
set_target_properties(upscale_relperm_benchmark PROPERTIES EXCLUDE_FROM_ALL 0)
|
||||
else()
|
||||
add_custom_target(benchmarks DEPENDS upscale_relperm_benchmark)
|
||||
if(INSTALL_BENCHMARKS)
|
||||
add_custom_target(benchmarks ALL DEPENDS upscale_relperm_benchmark)
|
||||
set_target_properties(upscale_relperm_benchmark PROPERTIES EXCLUDE_FROM_ALL 0)
|
||||
else()
|
||||
add_custom_target(benchmarks DEPENDS upscale_relperm_benchmark)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -10,7 +10,8 @@ set (opm-upscaling_DEPS
|
||||
"C99"
|
||||
# various runtime library enhancements
|
||||
"Boost 1.44.0
|
||||
COMPONENTS date_time system iostreams unit_test_framework REQUIRED"
|
||||
COMPONENTS date_time system unit_test_framework REQUIRED"
|
||||
"Boost 1.44.0 COMPONENTS iostreams"
|
||||
# matrix library
|
||||
"BLAS REQUIRED"
|
||||
"LAPACK REQUIRED"
|
||||
|
Loading…
Reference in New Issue
Block a user