'CMake find Boost manually without environment variable

My project is monolithic and I have packed all my SDKs into a single folder in my project as follows:

ProjectName/Code/SDKs/asio/1.20.0/...

I usually find the libraries that are not header-only by the help of find package:

find_package(LIB ${LIB_USE_VERSION} EXACT REQUIRED PATHS "${LIB_DIR}")

These libraries usually have LIBNAMEConfig.cmake and LIBNAMEConfig-version.cmake to be found manually.

But things change when it comes to boost as I don't want to use environment variable for SDKs.



Solution 1:[1]

I think you should use pre-built libraries if you are not going to do any changes.

Let me know if it solves your problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1