Fail to use self build Boost 1.75 under Ubuntu Linux 20.04 x64 with CMake default and 3.19.4

Hello CMake community,

hope here is someone around who can help me with using a self-build boost build with cmake

my system:
freshly installed Ubnutu 20.04 x64 with all build relevant tools (ubuntu packages: gcc 9.x, cmake, boost 1.71,…)
using official cmake executable from cmake-3.19.4-Linux-x86_64.tar.gz

main.cpp

#include <iostream>
#include <boost/filesystem.hpp>
using namespace boost::filesystem;

int main(int argc, char* argv[])
{
  if (argc < 2)
  {
    std::cout << "Usage: tut1 path\n";
    return 1;
  }
  std::cout << argv[1] << " " << file_size(argv[1]) << '\n';
  return 0;
}

CMakeLists.txt

cmake_minimum_required (VERSION 3.12)

#set(Boost_NO_BOOST_CMAKE TRUE)
set(Boost_NO_BOOST_CMAKE TRUE CACHE BOOL "" FORCE)
set(Boost_NO_SYSTEM_PATHS TRUE CACHE BOOL "" FORCE)
set(Boost_USE_STATIC_LIBS TRUE CACHE BOOL "" FORCE)

project (nowide_test)

set(CMAKE_CXX_STANDARD 17)

set( THIRD_PARTY_LIBS "~/dev/3rdparty-linux-gcc" )

set( BOOST_ROOT ${THIRD_PARTY_LIBS}/boost )
set( BOOST_INCLUDEDIR ${BOOST_ROOT}/boost)
set( BOOST_LIBRARYDIR ${BOOST_ROOT}/lib)
    
SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
SET(CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} -fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined")

#--------------------

# Collect header files

# Collect source
set (DB_SOURCES
    "main.cpp" )

find_package(Boost REQUIRED COMPONENTS filesystem)
IF (Boost_FOUND)
    INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIR})
    link_directories (${BOOST_LIBRARYDIR})
ENDIF()

# Set Properties->General->Configuration Type to Dynamic Library(.dll)
# Creates db.exe with the listed sources collected in the variables
# Also adds sources to the Solution Explorer
add_executable (nowide_test "main.cpp")

# Properties->General->Output Directory
set_target_properties(nowide_test PROPERTIES
                      RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)

build\CMakeFiles\CMakeOutput.log: https://paste.ubuntu.com/p/dtSvMtMBDP/
cmake_output.txt: https://paste.ubuntu.com/p/vvNYD72Qvw/

simple boost filesystem testprogram builds and runs without any problem using the
Ubuntu default boost (and default cmake or 3.19.4)
installation (omitting Boost_NO_BOOST_CMAKE, Boost_NO_SYSTEM_PATHS, Boost_USE_STATIC_LIBS, …)

but switching to my own build of boost 1.75 (or developer main) does not work
fails in finding component filesystem (or any other lib base component that i tried - in a full build of boost)

my boost build procedure (want to participate in Boost development so latest release or better develop main build from source)

mkdir 3rdparty-linux-gcc
cd 3rdparty-linux-gcc
wget https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.bz2
tar -xf boost_1_75_0.tar.bz2
ln -s boost_1_75_0 ./boost
cd boost_1_75_0
./bootstrap.sh
# building only filesystem for faster build times
./b2 --toolset=gcc --build-dir=.\include --build-type=complete address-model=64 architecture=x86 --layout=versioned threading=multi --with-filesystem --stagedir=./x64
ln -s x64/lib lib

result

~/dev/3rdparty-linux-gcc
 boost -> symbol link to boost_1_75_0
 boost_1_75_0
   boost --> untouched includes as usual
   lib -> symbol link to ./x64
   x64 <-- my build libs

files in lib

~/dev/3rdparty-linux-gcc/boost/lib$ ls *filesystem*

  libboost_filesystem-gcc9-mt-d-x64-1_75.a
  libboost_filesystem-gcc9-mt-d-x64-1_75.so
  libboost_filesystem-gcc9-mt-d-x64-1_75.so.1.75.0
  libboost_filesystem-gcc9-mt-sd-x64-1_75.a
  libboost_filesystem-gcc9-mt-s-x64-1_75.a
  libboost_filesystem-gcc9-mt-x64-1_75.a
  libboost_filesystem-gcc9-mt-x64-1_75.so
  libboost_filesystem-gcc9-mt-x64-1_75.so.1.75.0   

very typical boost installation, nothing special

building the test

~/dev/nowide_test
  build
  src
    CMakeLists.txt
    main.cpp

cd build
~/dev/cmake-3.19.4-Linux-x86_64/bin/cmake …/src -DBoost_DEBUG=ON

give these errors:

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1507 ] _boost_TEST_VERSIONS = "1.74.0;1.74;1.73.0;1.73;1.72.0;1.72;1.71.0;1.71;1.70.0;1.70;1.69.0;1.69;1.68.0;1.68;1.67.0;1.67;1.66.0;1.66;1.65.1;1.65.0;1.65;1.64.0;1.64;1.63.0;1.63;1.62.0;1.62;1.61.0;1.61;1.60.0;1.60;1.59.0;1.59;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1508 ] Boost_USE_MULTITHREADED = "TRUE"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1509 ] Boost_USE_STATIC_LIBS = "TRUE"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1510 ] Boost_USE_STATIC_RUNTIME = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1511 ] Boost_ADDITIONAL_VERSIONS = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1512 ] Boost_NO_SYSTEM_PATHS = "TRUE"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1544 ] BOOST_ROOT = "~/dev/3rdparty-linux-gcc/boost"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1545 ] ENV{BOOST_ROOT} = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1546 ] BOOST_INCLUDEDIR = "~/dev/3rdparty-linux-gcc/boost/boost"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1547 ] ENV{BOOST_INCLUDEDIR} = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1548 ] BOOST_LIBRARYDIR = "~/dev/3rdparty-linux-gcc/boost/lib"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1549 ] ENV{BOOST_LIBRARYDIR} = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1621 ] _boost_INCLUDE_SEARCH_DIRS = "~/dev/3rdparty-linux-gcc/boost/boost;~/dev/3rdparty-linux-gcc/boost/include;~/dev/3rdparty-linux-gcc/boost;NO_CMAKE_SYSTEM_PATH;NO_SYSTEM_ENVIRONMENT_PATH"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1622 ] _boost_PATH_SUFFIXES = "boost-1_74_0;boost_1_74_0;boost/boost-1_74_0;boost/boost_1_74_0;boost-1_74;boost_1_74;boost/boost-1_74;boost/boost_1_74;boost-1_73_0;boost_1_73_0;boost/boost-1_73_0;boost/boost_1_73_0;boost-1_73;boost_1_73;boost/boost-1_73;boost/boost_1_73;boost-1_72_0;boost_1_72_0;boost/boost-1_72_0;boost/boost_1_72_0;boost-1_72;boost_1_72;boost/boost-1_72;boost/boost_1_72;boost-1_71_0;boost_1_71_0;boost/boost-1_71_0;boost/boost_1_71_0;boost-1_71;boost_1_71;boost/boost-1_71;boost/boost_1_71;boost-1_70_0;boost_1_70_0;boost/boost-1_70_0;boost/boost_1_70_0;boost-1_70;boost_1_70;boost/boost-1_70;boost/boost_1_70;boost-1_69_0;boost_1_69_0;boost/boost-1_69_0;boost/boost_1_69_0;boost-1_69;boost_1_69;boost/boost-1_69;boost/boost_1_69;boost-1_68_0;boost_1_68_0;boost/boost-1_68_0;boost/boost_1_68_0;boost-1_68;boost_1_68;boost/boost-1_68;boost/boost_1_68;boost-1_67_0;boost_1_67_0;boost/boost-1_67_0;boost/boost_1_67_0;boost-1_67;boost_1_67;boost/boost-1_67;boost/boost_1_67;boost-1_66_0;boost_1_66_0;boost/boost-1_66_0;boost/boost_1_66_0;boost-1_66;boost_1_66;boost/boost-1_66;boost/boost_1_66;boost-1_65_1;boost_1_65_1;boost/boost-1_65_1;boost/boost_1_65_1;boost-1_65_0;boost_1_65_0;boost/boost-1_65_0;boost/boost_1_65_0;boost-1_65;boost_1_65;boost/boost-1_65;boost/boost_1_65;boost-1_64_0;boost_1_64_0;boost/boost-1_64_0;boost/boost_1_64_0;boost-1_64;boost_1_64;boost/boost-1_64;boost/boost_1_64;boost-1_63_0;boost_1_63_0;boost/boost-1_63_0;boost/boost_1_63_0;boost-1_63;boost_1_63;boost/boost-1_63;boost/boost_1_63;boost-1_62_0;boost_1_62_0;boost/boost-1_62_0;boost/boost_1_62_0;boost-1_62;boost_1_62;boost/boost-1_62;boost/boost_1_62;boost-1_61_0;boost_1_61_0;boost/boost-1_61_0;boost/boost_1_61_0;boost-1_61;boost_1_61;boost/boost-1_61;boost/boost_1_61;boost-1_60_0;boost_1_60_0;boost/boost-1_60_0;boost/boost_1_60_0;boost-1_60;boost_1_60;boost/boost-1_60;boost/boost_1_60;boost-1_59_0;boost_1_59_0;boost/boost-1_59_0;boost/boost_1_59_0;boost-1_59;boost_1_59;boost/boost-1_59;boost/boost_1_59;boost-1_58_0;boost_1_58_0;boost/boost-1_58_0;boost/boost_1_58_0;boost-1_58;boost_1_58;boost/boost-1_58;boost/boost_1_58;boost-1_57_0;boost_1_57_0;boost/boost-1_57_0;boost/boost_1_57_0;boost-1_57;boost_1_57;boost/boost-1_57;boost/boost_1_57;boost-1_56_0;boost_1_56_0;boost/boost-1_56_0;boost/boost_1_56_0;boost-1_56;boost_1_56;boost/boost-1_56;boost/boost_1_56;boost-1_55_0;boost_1_55_0;boost/boost-1_55_0;boost/boost_1_55_0;boost-1_55;boost_1_55;boost/boost-1_55;boost/boost_1_55;boost-1_54_0;boost_1_54_0;boost/boost-1_54_0;boost/boost_1_54_0;boost-1_54;boost_1_54;boost/boost-1_54;boost/boost_1_54;boost-1_53_0;boost_1_53_0;boost/boost-1_53_0;boost/boost_1_53_0;boost-1_53;boost_1_53;boost/boost-1_53;boost/boost_1_53;boost-1_52_0;boost_1_52_0;boost/boost-1_52_0;boost/boost_1_52_0;boost-1_52;boost_1_52;boost/boost-1_52;boost/boost_1_52;boost-1_51_0;boost_1_51_0;boost/boost-1_51_0;boost/boost_1_51_0;boost-1_51;boost_1_51;boost/boost-1_51;boost/boost_1_51;boost-1_50_0;boost_1_50_0;boost/boost-1_50_0;boost/boost_1_50_0;boost-1_50;boost_1_50;boost/boost-1_50;boost/boost_1_50;boost-1_49_0;boost_1_49_0;boost/boost-1_49_0;boost/boost_1_49_0;boost-1_49;boost_1_49;boost/boost-1_49;boost/boost_1_49;boost-1_48_0;boost_1_48_0;boost/boost-1_48_0;boost/boost_1_48_0;boost-1_48;boost_1_48;boost/boost-1_48;boost/boost_1_48;boost-1_47_0;boost_1_47_0;boost/boost-1_47_0;boost/boost_1_47_0;boost-1_47;boost_1_47;boost/boost-1_47;boost/boost_1_47;boost-1_46_1;boost_1_46_1;boost/boost-1_46_1;boost/boost_1_46_1;boost-1_46_0;boost_1_46_0;boost/boost-1_46_0;boost/boost_1_46_0;boost-1_46;boost_1_46;boost/boost-1_46;boost/boost_1_46;boost-1_45_0;boost_1_45_0;boost/boost-1_45_0;boost/boost_1_45_0;boost-1_45;boost_1_45;boost/boost-1_45;boost/boost_1_45;boost-1_44_0;boost_1_44_0;boost/boost-1_44_0;boost/boost_1_44_0;boost-1_44;boost_1_44;boost/boost-1_44;boost/boost_1_44;boost-1_43_0;boost_1_43_0;boost/boost-1_43_0;boost/boost_1_43_0;boost-1_43;boost_1_43;boost/boost-1_43;boost/boost_1_43;boost-1_42_0;boost_1_42_0;boost/boost-1_42_0;boost/boost_1_42_0;boost-1_42;boost_1_42;boost/boost-1_42;boost/boost_1_42;boost-1_41_0;boost_1_41_0;boost/boost-1_41_0;boost/boost_1_41_0;boost-1_41;boost_1_41;boost/boost-1_41;boost/boost_1_41;boost-1_40_0;boost_1_40_0;boost/boost-1_40_0;boost/boost_1_40_0;boost-1_40;boost_1_40;boost/boost-1_40;boost/boost_1_40;boost-1_39_0;boost_1_39_0;boost/boost-1_39_0;boost/boost_1_39_0;boost-1_39;boost_1_39;boost/boost-1_39;boost/boost_1_39;boost-1_38_0;boost_1_38_0;boost/boost-1_38_0;boost/boost_1_38_0;boost-1_38;boost_1_38;boost/boost-1_38;boost/boost_1_38;boost-1_37_0;boost_1_37_0;boost/boost-1_37_0;boost/boost_1_37_0;boost-1_37;boost_1_37;boost/boost-1_37;boost/boost_1_37;boost-1_36_1;boost_1_36_1;boost/boost-1_36_1;boost/boost_1_36_1;boost-1_36_0;boost_1_36_0;boost/boost-1_36_0;boost/boost_1_36_0;boost-1_36;boost_1_36;boost/boost-1_36;boost/boost_1_36;boost-1_35_1;boost_1_35_1;boost/boost-1_35_1;boost/boost_1_35_1;boost-1_35_0;boost_1_35_0;boost/boost-1_35_0;boost/boost_1_35_0;boost-1_35;boost_1_35;boost/boost-1_35;boost/boost_1_35;boost-1_34_1;boost_1_34_1;boost/boost-1_34_1;boost/boost_1_34_1;boost-1_34_0;boost_1_34_0;boost/boost-1_34_0;boost/boost_1_34_0;boost-1_34;boost_1_34;boost/boost-1_34;boost/boost_1_34;boost-1_33_1;boost_1_33_1;boost/boost-1_33_1;boost/boost_1_33_1;boost-1_33_0;boost_1_33_0;boost/boost-1_33_0;boost/boost_1_33_0;boost-1_33;boost_1_33;boost/boost-1_33;boost/boost_1_33"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1637 ] location of version.hpp: /home/linux/dev/3rdparty-linux-gcc/boost/boost/version.hpp
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1677 ] Boost_VERSION = "107500"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1678 ] Boost_VERSION_STRING = "1.75.0"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1679 ] Boost_VERSION_MACRO = "107500"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1680 ] Boost_VERSION_MAJOR = "1"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1681 ] Boost_VERSION_MINOR = "75"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1682 ] Boost_VERSION_PATCH = "0"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1683 ] Boost_VERSION_COUNT = "3"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1707 ] Boost_LIB_PREFIX = ""
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1708 ] Boost_NAMESPACE = "boost"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:818 ] _boost_COMPILER = "-gcc9" (guessed)
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1744 ] _boost_MULTITHREADED = "-mt"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1821 ] _boost_ARCHITECTURE_TAG = "" (detected)
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1825 ] _boost_RELEASE_ABI_TAG = "-"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1826 ] _boost_DEBUG_ABI_TAG = "-d"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1886 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = "~/dev/3rdparty-linux-gcc/boost/lib;~/dev/3rdparty-linux-gcc/boost/lib;~/dev/3rdparty-linux-gcc/boost/stage/lib;/home/linux/dev/3rdparty-linux-gcc/boost/lib;/home/linux/dev/3rdparty-linux-gcc/boost/../lib;/home/linux/dev/3rdparty-linux-gcc/boost/stage/lib;NO_CMAKE_SYSTEM_PATH;NO_SYSTEM_ENVIRONMENT_PATH"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1887 ] _boost_LIBRARY_SEARCH_DIRS_DEBUG = "~/dev/3rdparty-linux-gcc/boost/lib;~/dev/3rdparty-linux-gcc/boost/lib;~/dev/3rdparty-linux-gcc/boost/stage/lib;/home/linux/dev/3rdparty-linux-gcc/boost/lib;/home/linux/dev/3rdparty-linux-gcc/boost/../lib;/home/linux/dev/3rdparty-linux-gcc/boost/stage/lib;NO_CMAKE_SYSTEM_PATH;NO_SYSTEM_ENVIRONMENT_PATH"
CMake Warning at /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1204 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1326 (_Boost_COMPONENT_DEPENDENCIES)
  /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1935 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:29 (find_package)


-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:2072 ] Searching for FILESYSTEM_LIBRARY_RELEASE: boost_filesystem-gcc9-mt-1_75;boost_filesystem-gcc9-mt;boost_filesystem-gcc9-mt;boost_filesystem-mt-1_75;boost_filesystem-mt;boost_filesystem-mt;boost_filesystem-mt;boost_filesystem
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:2127 ] Searching for FILESYSTEM_LIBRARY_DEBUG: boost_filesystem-gcc9-mt-d-1_75;boost_filesystem-gcc9-mt-d;boost_filesystem-gcc9-mt-d;boost_filesystem-mt-d-1_75;boost_filesystem-mt-d;boost_filesystem-mt-d;boost_filesystem-mt;boost_filesystem
CMake Error at /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find Boost (missing: filesystem) (found version "1.75.0")
Call Stack (most recent call first):
  /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE)
  /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:2193 (find_package_handle_standard_args)
  CMakeLists.txt:29 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/linux/dev/nowide_test/build/CMakeFiles/CMakeOutput.log".

the pathes and search names seem to be correct

_boost_LIBRARY_SEARCH_DIRS_RELEASE and _DEBUG containing my boost path
FILESYSTEM_LIBRARY_RELEASE and _DEBUG containing names that should match my lib names

any idea what im doing wrong?

to prevent silly mistakes:

first reduced my CMakeLists.txt

cmake_minimum_required (VERSION 3.12)

project (nowide_test)

set(CMAKE_CXX_STANDARD 17)

IF(use_my_boost)

set(Boost_NO_BOOST_CMAKE TRUE)
set(Boost_NO_SYSTEM_PATHS TRUE)
set(Boost_USE_STATIC_LIBS TRUE)

set( THIRD_PARTY_LIBS "~/dev/3rdparty-linux-gcc" )

set( BOOST_ROOT ${THIRD_PARTY_LIBS}/boost )
set( BOOST_INCLUDEDIR ${BOOST_ROOT}/boost)
set( BOOST_LIBRARYDIR ${BOOST_ROOT}/lib)

endif()
    
find_package(Boost REQUIRED COMPONENTS filesystem)
IF (Boost_FOUND)
    INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIR})
    link_directories (${BOOST_LIBRARYDIR})
ENDIF()

add_executable (nowide_test "main.cpp")

rebuild my complete 3rd-party folder with boost using this script:

mkdir 3rdparty-linux-gcc
cd 3rdparty-linux-gcc
wget https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.bz2
tar -xf boost_1_75_0.tar.bz2
ln -s boost_1_75_0 ./boost
cd boost_1_75_0
./bootstrap.sh
./b2 --toolset=gcc --build-dir=./_build --build-type=complete address-model=64 architecture=x86 --layout=versioned threading=multi --with-filesystem --stagedir=./_x64
ln -s _x64/lib lib

resulting libs

linux@linux-virtual-machine:~/dev/3rdparty-linux-gcc/boost/lib$ ls *filesystem*
libboost_filesystem-gcc10-mt-d-x64-1_75.a
libboost_filesystem-gcc10-mt-d-x64-1_75.so
libboost_filesystem-gcc10-mt-d-x64-1_75.so.1.75.0
libboost_filesystem-gcc10-mt-sd-x64-1_75.a
libboost_filesystem-gcc10-mt-s-x64-1_75.a
libboost_filesystem-gcc10-mt-x64-1_75.a
libboost_filesystem-gcc10-mt-x64-1_75.so
libboost_filesystem-gcc10-mt-x64-1_75.so.1.75.0

running “cmake …\src -Duse_my_boost=FALSE” works
but “cmake …\src -Duse_my_boost=TRUE” still gives the former error

and also tested under Ubuntu 20.10 with default cmake/boost and cmake 3.19.4 > same problem

linux@linux-virtual-machine:~/dev/nowide_test/_build$ ../../cmake-3.19.4-Linux-x86_64/bin/cmake ../src -Duse_my_boost=TRUE -DBoost_DEBUG=TRUE
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1507 ] _boost_TEST_VERSIONS = "1.74.0;1.74;1.73.0;1.73;1.72.0;1.72;1.71.0;1.71;1.70.0;1.70;1.69.0;1.69;1.68.0;1.68;1.67.0;1.67;1.66.0;1.66;1.65.1;1.65.0;1.65;1.64.0;1.64;1.63.0;1.63;1.62.0;1.62;1.61.0;1.61;1.60.0;1.60;1.59.0;1.59;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1508 ] Boost_USE_MULTITHREADED = "TRUE"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1509 ] Boost_USE_STATIC_LIBS = "TRUE"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1510 ] Boost_USE_STATIC_RUNTIME = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1511 ] Boost_ADDITIONAL_VERSIONS = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1512 ] Boost_NO_SYSTEM_PATHS = "TRUE"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1544 ] BOOST_ROOT = "~/dev/3rdparty-linux-gcc/boost"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1545 ] ENV{BOOST_ROOT} = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1546 ] BOOST_INCLUDEDIR = "~/dev/3rdparty-linux-gcc/boost/boost"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1547 ] ENV{BOOST_INCLUDEDIR} = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1548 ] BOOST_LIBRARYDIR = "~/dev/3rdparty-linux-gcc/boost/lib"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1549 ] ENV{BOOST_LIBRARYDIR} = <unset>
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1621 ] _boost_INCLUDE_SEARCH_DIRS = "~/dev/3rdparty-linux-gcc/boost/boost;~/dev/3rdparty-linux-gcc/boost/include;~/dev/3rdparty-linux-gcc/boost;NO_CMAKE_SYSTEM_PATH;NO_SYSTEM_ENVIRONMENT_PATH"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1622 ] _boost_PATH_SUFFIXES = "boost-1_74_0;boost_1_74_0;boost/boost-1_74_0;boost/boost_1_74_0;boost-1_74;boost_1_74;boost/boost-1_74;boost/boost_1_74;boost-1_73_0;boost_1_73_0;boost/boost-1_73_0;boost/boost_1_73_0;boost-1_73;boost_1_73;boost/boost-1_73;boost/boost_1_73;boost-1_72_0;boost_1_72_0;boost/boost-1_72_0;boost/boost_1_72_0;boost-1_72;boost_1_72;boost/boost-1_72;boost/boost_1_72;boost-1_71_0;boost_1_71_0;boost/boost-1_71_0;boost/boost_1_71_0;boost-1_71;boost_1_71;boost/boost-1_71;boost/boost_1_71;boost-1_70_0;boost_1_70_0;boost/boost-1_70_0;boost/boost_1_70_0;boost-1_70;boost_1_70;boost/boost-1_70;boost/boost_1_70;boost-1_69_0;boost_1_69_0;boost/boost-1_69_0;boost/boost_1_69_0;boost-1_69;boost_1_69;boost/boost-1_69;boost/boost_1_69;boost-1_68_0;boost_1_68_0;boost/boost-1_68_0;boost/boost_1_68_0;boost-1_68;boost_1_68;boost/boost-1_68;boost/boost_1_68;boost-1_67_0;boost_1_67_0;boost/boost-1_67_0;boost/boost_1_67_0;boost-1_67;boost_1_67;boost/boost-1_67;boost/boost_1_67;boost-1_66_0;boost_1_66_0;boost/boost-1_66_0;boost/boost_1_66_0;boost-1_66;boost_1_66;boost/boost-1_66;boost/boost_1_66;boost-1_65_1;boost_1_65_1;boost/boost-1_65_1;boost/boost_1_65_1;boost-1_65_0;boost_1_65_0;boost/boost-1_65_0;boost/boost_1_65_0;boost-1_65;boost_1_65;boost/boost-1_65;boost/boost_1_65;boost-1_64_0;boost_1_64_0;boost/boost-1_64_0;boost/boost_1_64_0;boost-1_64;boost_1_64;boost/boost-1_64;boost/boost_1_64;boost-1_63_0;boost_1_63_0;boost/boost-1_63_0;boost/boost_1_63_0;boost-1_63;boost_1_63;boost/boost-1_63;boost/boost_1_63;boost-1_62_0;boost_1_62_0;boost/boost-1_62_0;boost/boost_1_62_0;boost-1_62;boost_1_62;boost/boost-1_62;boost/boost_1_62;boost-1_61_0;boost_1_61_0;boost/boost-1_61_0;boost/boost_1_61_0;boost-1_61;boost_1_61;boost/boost-1_61;boost/boost_1_61;boost-1_60_0;boost_1_60_0;boost/boost-1_60_0;boost/boost_1_60_0;boost-1_60;boost_1_60;boost/boost-1_60;boost/boost_1_60;boost-1_59_0;boost_1_59_0;boost/boost-1_59_0;boost/boost_1_59_0;boost-1_59;boost_1_59;boost/boost-1_59;boost/boost_1_59;boost-1_58_0;boost_1_58_0;boost/boost-1_58_0;boost/boost_1_58_0;boost-1_58;boost_1_58;boost/boost-1_58;boost/boost_1_58;boost-1_57_0;boost_1_57_0;boost/boost-1_57_0;boost/boost_1_57_0;boost-1_57;boost_1_57;boost/boost-1_57;boost/boost_1_57;boost-1_56_0;boost_1_56_0;boost/boost-1_56_0;boost/boost_1_56_0;boost-1_56;boost_1_56;boost/boost-1_56;boost/boost_1_56;boost-1_55_0;boost_1_55_0;boost/boost-1_55_0;boost/boost_1_55_0;boost-1_55;boost_1_55;boost/boost-1_55;boost/boost_1_55;boost-1_54_0;boost_1_54_0;boost/boost-1_54_0;boost/boost_1_54_0;boost-1_54;boost_1_54;boost/boost-1_54;boost/boost_1_54;boost-1_53_0;boost_1_53_0;boost/boost-1_53_0;boost/boost_1_53_0;boost-1_53;boost_1_53;boost/boost-1_53;boost/boost_1_53;boost-1_52_0;boost_1_52_0;boost/boost-1_52_0;boost/boost_1_52_0;boost-1_52;boost_1_52;boost/boost-1_52;boost/boost_1_52;boost-1_51_0;boost_1_51_0;boost/boost-1_51_0;boost/boost_1_51_0;boost-1_51;boost_1_51;boost/boost-1_51;boost/boost_1_51;boost-1_50_0;boost_1_50_0;boost/boost-1_50_0;boost/boost_1_50_0;boost-1_50;boost_1_50;boost/boost-1_50;boost/boost_1_50;boost-1_49_0;boost_1_49_0;boost/boost-1_49_0;boost/boost_1_49_0;boost-1_49;boost_1_49;boost/boost-1_49;boost/boost_1_49;boost-1_48_0;boost_1_48_0;boost/boost-1_48_0;boost/boost_1_48_0;boost-1_48;boost_1_48;boost/boost-1_48;boost/boost_1_48;boost-1_47_0;boost_1_47_0;boost/boost-1_47_0;boost/boost_1_47_0;boost-1_47;boost_1_47;boost/boost-1_47;boost/boost_1_47;boost-1_46_1;boost_1_46_1;boost/boost-1_46_1;boost/boost_1_46_1;boost-1_46_0;boost_1_46_0;boost/boost-1_46_0;boost/boost_1_46_0;boost-1_46;boost_1_46;boost/boost-1_46;boost/boost_1_46;boost-1_45_0;boost_1_45_0;boost/boost-1_45_0;boost/boost_1_45_0;boost-1_45;boost_1_45;boost/boost-1_45;boost/boost_1_45;boost-1_44_0;boost_1_44_0;boost/boost-1_44_0;boost/boost_1_44_0;boost-1_44;boost_1_44;boost/boost-1_44;boost/boost_1_44;boost-1_43_0;boost_1_43_0;boost/boost-1_43_0;boost/boost_1_43_0;boost-1_43;boost_1_43;boost/boost-1_43;boost/boost_1_43;boost-1_42_0;boost_1_42_0;boost/boost-1_42_0;boost/boost_1_42_0;boost-1_42;boost_1_42;boost/boost-1_42;boost/boost_1_42;boost-1_41_0;boost_1_41_0;boost/boost-1_41_0;boost/boost_1_41_0;boost-1_41;boost_1_41;boost/boost-1_41;boost/boost_1_41;boost-1_40_0;boost_1_40_0;boost/boost-1_40_0;boost/boost_1_40_0;boost-1_40;boost_1_40;boost/boost-1_40;boost/boost_1_40;boost-1_39_0;boost_1_39_0;boost/boost-1_39_0;boost/boost_1_39_0;boost-1_39;boost_1_39;boost/boost-1_39;boost/boost_1_39;boost-1_38_0;boost_1_38_0;boost/boost-1_38_0;boost/boost_1_38_0;boost-1_38;boost_1_38;boost/boost-1_38;boost/boost_1_38;boost-1_37_0;boost_1_37_0;boost/boost-1_37_0;boost/boost_1_37_0;boost-1_37;boost_1_37;boost/boost-1_37;boost/boost_1_37;boost-1_36_1;boost_1_36_1;boost/boost-1_36_1;boost/boost_1_36_1;boost-1_36_0;boost_1_36_0;boost/boost-1_36_0;boost/boost_1_36_0;boost-1_36;boost_1_36;boost/boost-1_36;boost/boost_1_36;boost-1_35_1;boost_1_35_1;boost/boost-1_35_1;boost/boost_1_35_1;boost-1_35_0;boost_1_35_0;boost/boost-1_35_0;boost/boost_1_35_0;boost-1_35;boost_1_35;boost/boost-1_35;boost/boost_1_35;boost-1_34_1;boost_1_34_1;boost/boost-1_34_1;boost/boost_1_34_1;boost-1_34_0;boost_1_34_0;boost/boost-1_34_0;boost/boost_1_34_0;boost-1_34;boost_1_34;boost/boost-1_34;boost/boost_1_34;boost-1_33_1;boost_1_33_1;boost/boost-1_33_1;boost/boost_1_33_1;boost-1_33_0;boost_1_33_0;boost/boost-1_33_0;boost/boost_1_33_0;boost-1_33;boost_1_33;boost/boost-1_33;boost/boost_1_33"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1637 ] location of version.hpp: /home/linux/dev/3rdparty-linux-gcc/boost/boost/version.hpp
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1677 ] Boost_VERSION = "107500"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1678 ] Boost_VERSION_STRING = "1.75.0"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1679 ] Boost_VERSION_MACRO = "107500"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1680 ] Boost_VERSION_MAJOR = "1"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1681 ] Boost_VERSION_MINOR = "75"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1682 ] Boost_VERSION_PATCH = "0"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1683 ] Boost_VERSION_COUNT = "3"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1707 ] Boost_LIB_PREFIX = ""
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1708 ] Boost_NAMESPACE = "boost"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:818 ] _boost_COMPILER = "-gcc10" (guessed)
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1744 ] _boost_MULTITHREADED = "-mt"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1821 ] _boost_ARCHITECTURE_TAG = "" (detected)
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1825 ] _boost_RELEASE_ABI_TAG = "-"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1826 ] _boost_DEBUG_ABI_TAG = "-d"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1886 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = "~/dev/3rdparty-linux-gcc/boost/lib;~/dev/3rdparty-linux-gcc/boost/lib;~/dev/3rdparty-linux-gcc/boost/stage/lib;/home/linux/dev/3rdparty-linux-gcc/boost/lib;/home/linux/dev/3rdparty-linux-gcc/boost/../lib;/home/linux/dev/3rdparty-linux-gcc/boost/stage/lib;NO_CMAKE_SYSTEM_PATH;NO_SYSTEM_ENVIRONMENT_PATH"
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1887 ] _boost_LIBRARY_SEARCH_DIRS_DEBUG = "~/dev/3rdparty-linux-gcc/boost/lib;~/dev/3rdparty-linux-gcc/boost/lib;~/dev/3rdparty-linux-gcc/boost/stage/lib;/home/linux/dev/3rdparty-linux-gcc/boost/lib;/home/linux/dev/3rdparty-linux-gcc/boost/../lib;/home/linux/dev/3rdparty-linux-gcc/boost/stage/lib;NO_CMAKE_SYSTEM_PATH;NO_SYSTEM_ENVIRONMENT_PATH"
CMake Warning at /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1204 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1326 (_Boost_COMPONENT_DEPENDENCIES)
  /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:1935 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:21 (find_package)


-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:2072 ] Searching for FILESYSTEM_LIBRARY_RELEASE: boost_filesystem-gcc10-mt-1_75;boost_filesystem-gcc10-mt;boost_filesystem-gcc10-mt;boost_filesystem-mt-1_75;boost_filesystem-mt;boost_filesystem-mt;boost_filesystem-mt;boost_filesystem
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:2127 ] Searching for FILESYSTEM_LIBRARY_DEBUG: boost_filesystem-gcc10-mt-d-1_75;boost_filesystem-gcc10-mt-d;boost_filesystem-gcc10-mt-d;boost_filesystem-mt-d-1_75;boost_filesystem-mt-d;boost_filesystem-mt-d;boost_filesystem-mt;boost_filesystem
CMake Error at /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find Boost (missing: filesystem) (found version "1.75.0")
Call Stack (most recent call first):
  /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE)
  /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:2193 (find_package_handle_standard_args)
  CMakeLists.txt:21 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/linux/dev/nowide_test/_build/CMakeFiles/CMakeOutput.log".

with this _build/CMakeFiles/CMakeOutput.log: https://paste.ubuntu.com/p/KRCBqC4mWr/

Cc: @rleigh @brad.king

Looking at the debug output:

-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:2072 ] Searching for FILESYSTEM_LIBRARY_RELEASE: boost_filesystem-gcc9-mt-1_75;boost_filesystem-gcc9-mt;boost_filesystem-gcc9-mt;boost_filesystem-mt-1_75;boost_filesystem-mt;boost_filesystem-mt;boost_filesystem-mt;boost_filesystem
-- [ /home/linux/dev/cmake-3.19.4-Linux-x86_64/share/cmake-3.19/Modules/FindBoost.cmake:2127 ] Searching for FILESYSTEM_LIBRARY_DEBUG: boost_filesystem-gcc9-mt-d-1_75;boost_filesystem-gcc9-mt-d;boost_filesystem-gcc9-mt-d;boost_filesystem-mt-d-1_75;boost_filesystem-mt-d;boost_filesystem-mt-d;boost_filesystem-mt;boost_filesystem

It looks like the specific versioning pattern in your build isn’t supported by FindBoost. That’s a deficiency which should be fixed.

The simple solution (which I would recommend) is to use “layout=system” which misses off all that nonsense. FindBoost tries its best with “layout=versioned”, but it’s such an ill-specified mixture of stuff, it’s all too easy to make a mistake. To get this perfect every time, we would need to reimplement every bit of versioning logic identically to “b2”, and that’s a really tough challenge, because it’s a unique build system which works differently to everything else out there. We do already hardcode a lot of its rules, but we’re at a great disadvantage trying to keep up. It’s all too easy for certain bits to fall through the cracks.

I was hopeful that the native Boost CMake support would make this work robustly and allow us to retire FindBoost for good. But I’m afraid I’m not personally using Boost at the moment, and I’ve not kept track of where upstream are at with their CMake migration work. I’m afraid I don’t have time to work on this at the moment, but if you wanted to add support for that missing field, it would certainly be appreciated.

Kind regards,
Roger

thanks for the tip with system layout, works for my example

FYI: layout=system is not compatible with my wanted --build-type=complet parameter but i can fix that by using different folder

i will ask on the boost mailing list how the boosts cmake stuff “should” help, will add mailing list post link here

For reference, CMake 3.19.5 will update FindBoost to be aware of Boost 1.75. See CMake Issue 21773.

See CMake Issue 17701 about the layout differences.

However, Boost upstream now provides a proper CMake package file BoostConfig.cmake which should work for using Boost in any layout.

i hope to get back to all that stuff very soon - after month of doing complete different projects

first thing is update to 1.76 - hope the boost guys got that stuff working