-
We're beginning migration of a large makefile build system to cmake and establishing a standardized vcpkg+cmake build process for internal library projects going forward. For now the main build must remain Questions:
Structure:
Goal: # Makefile for Project B
# Add any required public interface compiler options, defines etc. for Vcpkg Port X and Y.
EXTRA_CXXFLAGS += <...>
EXTRA_LDFLAGS += <...>
EXTRA_CFLAGS += <...>
...
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I might want to have a look at #33198. The general way is to call
the non cmake build should already use pkg-config. If everything else has pc files than it is just a matter of setting up pkg-config paths. as done by all ports using pkg-config. But there is also the port
No. Just generate a working pc file to move forward. Otherwise you are in find_library hell as qt5-base does. You can forward options to direct dependent ports using |
Beta Was this translation helpful? Give feedback.
I might want to have a look at #33198. The general way is to call
vcpkg_get_cmake_vars
(from portvcpkg-cmake-get-vars
) which creates a bunch of files which can be included to get a bunch of variables from cmake. You then can use those variables to correctly setup your environment.the non cmake build should already use pkg-config. If everything else has pc files than it is just a matter of setting up pkg-config paths. as done by all ports using pkg-config. But there is also the port
vcpkg-pkgconfig-get-modules
if you need the info in the portfile itself.…