diff --git a/CMakeLists.txt b/CMakeLists.txt index 70e4dd57c..cd6e1d279 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,9 +216,6 @@ if(SFML_OS_MACOS) endif() endif() -# set the output directory for SFML DLLs and executables -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) - # enable project folders set_property(GLOBAL PROPERTY USE_FOLDERS ON) set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMake") diff --git a/CMakePresets.json b/CMakePresets.json index a5b31fd4e..953df42e3 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -8,6 +8,7 @@ "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"