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 committed 2013-11-18 13:19:18 +01:00
1 parent 4379ee8da6
commit 6d433017a4
1 file changed
+6 -4
+6 -4
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)