Skip to content
Discussion options

You must be logged in to vote

The canonical way to set global compiler-related flags is to set them in a toolchain file.
If you don't want to write your own toolchain you can use convenience variables provided by default vcpkg toolchains: VCPKG_C_FLAGS and VCPKG_CXX_FLAGS.
Note that vcpkg toolchain is not your project toolchain so you have to set flags in both places.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Cazadorro
Comment options

@Osyotr
Comment options

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