How can I customize a port for a specific triplet in vcpkg? #41076
Unanswered
SeanTolstoyevski
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I don't think this statement is right. POCO takes care of it:
Note that these variables, like string(APPEND VCPKG_CXX_FLAGS " -DPOCO_COMPILER_MINGW")
string(APPEND VCPKG_C_FLAGS " -DPOCO_COMPILER_MINGW") (Note the space!) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
For the Poco port, I need to make some changes to the Community triplets x64-mingw and x64-mingw-static.
In summary, if Poco is compiled with MinGW, some definitions are required.
One of them is the
-DPOCO_COMPILER_MINGW
flag.This flag is not set with the current port and we see the following error:
And output log
D:\projs\vcpkg\buildtrees\poco\install-x64-mingw-static-dbg-out.log
:The reason for the error is that the
__try
statement can only be used with MSVC. And these lines are compiled with conditional compilation (ifdef ifndef etc.), but Poco does not detect this due to the missing flag when compiling.I also want to customize this Poco port for these 2 triplets.
To try it I made the following additions to the
ports/Poco/portfile.cmake
file, but it didn't work:I also read the available ports, but I could not understand how such specific things are done or what vcpkg's approach is to this issue.
Can you give me an idea about this?
Beta Was this translation helpful? Give feedback.
All reactions