This library contains CMake code (files with .cmake extentions),
Python scripts and it is intended for simplification different actions
on the organization of the build environment.
| Revision | bc6fa73da933d50d179d5282fdf82fce4f6d8d34 (tree) |
|---|---|
| Time | 2024-03-18 11:57:06 |
| Author | Sergey Gusarov |
| Commiter | Sergey Gusarov |
Fixed reporting of cpp version since MS VC++ 2017+
| @@ -24,6 +24,9 @@ | ||
| 24 | 24 | if (MSVC_VERSION VERSION_GREATER 1900 OR MSVC_VERSION VERSION_EQUAL 1900) |
| 25 | 25 | # If CRT wants to be secure - let it be |
| 26 | 26 | set(CMT_COMPILER_DEFINITIONS "${CMT_COMPILER_DEFINITIONS} -D__STDC_WANT_SECURE_LIB__") |
| 27 | + | |
| 28 | +# Without it VC++ breaks standard and reports that it c++98-compatible only | |
| 29 | + set(CMT_COMPILER_DEFINITIONS "${CMT_COMPILER_DEFINITIONS} /Zc:__cplusplus") | |
| 27 | 30 | endif() |
| 28 | 31 | |
| 29 | 32 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} /Wall") |