mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
d11615da97
Hardcoding this into the library itself means that outside consumers cannot choose a different value. This in particular breaks the CMake template project of ours which also tries to set this value. As conventional wisdom dictates, its best to not touch CMAKE_ variables unless necessary. Luckily our use of presents means we can easy move this into the development preset.
19 lines
462 B
JSON
19 lines
462 B
JSON
{
|
|
"version": 3,
|
|
"configurePresets":[
|
|
{
|
|
"name": "dev",
|
|
"binaryDir": "build",
|
|
"installDir": "${sourceDir}/build/install",
|
|
"cacheVariables": {
|
|
"CMAKE_CXX_EXTENSIONS": "OFF",
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
|
|
"CMAKE_RUNTIME_OUTPUT_DIRECTORY": "${sourceDir}/build/bin",
|
|
"SFML_BUILD_EXAMPLES": "ON",
|
|
"SFML_BUILD_TEST_SUITE": "ON",
|
|
"SFML_WARNINGS_AS_ERRORS": "ON"
|
|
}
|
|
}
|
|
]
|
|
}
|