Search code examples
cmakepackage-managersbuild-systembuild2

Build2 analog of CMake's find_package


Is there are any mechanism in Build2 like CMake's find_package?

How to can i include a library that exists only on my system and not in package manager packages?


Solution

  • To use foo as dependency in your bar project, you need to add a line:

    cxx.libs += -lfoo
    

    in ~/bar/bar/buildfile