mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Only add build sub-directory if it is actually used
Otherwise the search will cascade down one level too many.
This commit is contained in:
parent
ce569c75d4
commit
47eb8a0549
@ -110,10 +110,12 @@ macro (find_opm_package module deps header lib defs prog conf)
|
|||||||
)
|
)
|
||||||
|
|
||||||
# look in similar dirs for the other module
|
# look in similar dirs for the other module
|
||||||
|
if (_build_dir)
|
||||||
list (APPEND _guess_bin_only
|
list (APPEND _guess_bin_only
|
||||||
"../../${module}/${_build_dir}"
|
"../../${module}/${_build_dir}"
|
||||||
"../../${_module_lower}/${_build_dir}"
|
"../../${_module_lower}/${_build_dir}"
|
||||||
)
|
)
|
||||||
|
endif (_build_dir)
|
||||||
|
|
||||||
# generate items that are in the build, not source dir
|
# generate items that are in the build, not source dir
|
||||||
set (_guess_bin)
|
set (_guess_bin)
|
||||||
|
Loading…
Reference in New Issue
Block a user