This change brings in several things 1. The `CMakeLists.txt` file has been reorganized and brought up to more "modern" CMake code (while still working with CMake 3.2 at a minimum) 2. A fix has been added for #77, to always set the suffix to `.dll`, regardless of toolchain 3. Warnings for _CRT_SECURE and _CRT_NONSTDC are now disabled. 4. This also adds the most minimal version of a cmake "preset" for CMake 3.19 and later. This adds generators for unix makefiles and ninja, allowing users to simply execute their post-install step as: ```console $ cmake --preset <ninja|make> $ cmake --build build --target install ```
29 lines
484 B
JSON
29 lines
484 B
JSON
{
|
|
"version": 1,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 19,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "base",
|
|
"hidden": true,
|
|
"binaryDir": "${sourceDir}/build",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
}
|
|
},
|
|
{
|
|
"name": "ninja",
|
|
"inherits": "base",
|
|
"generator": "Ninja"
|
|
},
|
|
{
|
|
"name": "make",
|
|
"inherits": "base",
|
|
"generator": "Unix Makefiles"
|
|
}
|
|
]
|
|
}
|