Since boost dir may not exist anymore, use the lyx-src dir for out-of-source build detection

This commit is contained in:
Kornel Benko 2017-08-02 18:44:32 +02:00
parent b701c25277
commit b5a4e79736

View File

@ -302,8 +302,8 @@ bool isBuildDir(FileName const & abs_binary, string const & dir_location,
return true;
}
// cmake file, no Makefile in lib
FileName build_boost_dir = FileName(addPath(search_dir + "/3rdparty", "boost"));
if (!fileSearch(build_boost_dir.absFileName(), "cmake_install.cmake").empty()) {
FileName build_src_dir = FileName(addPath(search_dir, "src"));
if (!fileSearch(build_src_dir.absFileName(), "cmake_install.cmake").empty()) {
return true;
}