Skip to content

Compiling vcpkg librairies with different versions of C++ (CMake) #40309

Closed Answered by dg0yt
generaltoto asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of non-trivial patching the external activemq-cpp source code, separate your project code into one C++14 (CXX_STANDARD target property) lib which accesses pristine activemq-cpp, but doesn't expose the interfaces removed in modern C++ versions, and other libs which access your C++14 lib, but are not restricted themselves (CMAKE_CXX_STANDARD).

(I would assume you will eventually need to port away from activemq-cpp when they are not making new releases. The separation of code could be aligned with that perspective.)

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Osyotr
Comment options

@dg0yt
Comment options

@generaltoto
Comment options

@dg0yt
Comment options

Answer selected by generaltoto
@generaltoto
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants