Use PlatformToolsetVersion in MSVC binaries usage instructions
This should work for any compiler version, at the cost of being slightly less clear. Closes #18422.
This commit is contained in:
@@ -71,8 +71,10 @@ following:
|
|||||||
* Check that you use "Multi-threaded \[Debug\] DLL" in the "Run-time
|
* Check that you use "Multi-threaded \[Debug\] DLL" in the "Run-time
|
||||||
library" option under "Code Generation" to ensure that your build uses
|
library" option under "Code Generation" to ensure that your build uses
|
||||||
the same CRT version as our binaries.
|
the same CRT version as our binaries.
|
||||||
* In the linker options you only need to add `$``(wxwin)\lib\vc141_dll` (with
|
* In the linker options you only need to add `$``(wxwin)\lib\vc$``(PlatformToolsetVersion)_dll`
|
||||||
the compiler-version-dependent suffix, of course) to "Additional Library
|
(the standard `PlatformToolsetVersion` macro expands into something like
|
||||||
|
`141`, depending on the toolset version being used, and you could also use
|
||||||
|
the version number directly if you prefer) to "Additional Library
|
||||||
Directories" under "Linker\\General" in the options. Thanks to the use of
|
Directories" under "Linker\\General" in the options. Thanks to the use of
|
||||||
MSVC-specific `setup.h` you don't need to list wxWidgets libraries manually,
|
MSVC-specific `setup.h` you don't need to list wxWidgets libraries manually,
|
||||||
i.e. you do **not** need to put anything in the list of "Additional
|
i.e. you do **not** need to put anything in the list of "Additional
|
||||||
|
Reference in New Issue
Block a user