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:
Roland Kaufmann 2013-11-18 13:19:18 +01:00 committed by Bård Skaflestad
parent ce569c75d4
commit 47eb8a0549

View File

@ -110,10 +110,12 @@ macro (find_opm_package module deps header lib defs prog conf)
)
# look in similar dirs for the other module
list (APPEND _guess_bin_only
"../../${module}/${_build_dir}"
"../../${_module_lower}/${_build_dir}"
)
if (_build_dir)
list (APPEND _guess_bin_only
"../../${module}/${_build_dir}"
"../../${_module_lower}/${_build_dir}"
)
endif (_build_dir)
# generate items that are in the build, not source dir
set (_guess_bin)