diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cd41b0..25269c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # CMakeLists.txt -# Written by JackCarterSmith, 2024 +# Written by JackCarterSmith, 2025 # This file is released under the ProtoTank license. cmake_minimum_required(VERSION 3.23) @@ -107,11 +107,11 @@ else() endif() # static linking of stdlib - if(MINGW) - list(APPEND LINKLIBS -static gcc stdc++ pthread -dynamic) - else() - list(APPEND LINKLIBS -Wl,-Bstatic -lgcc -lstdc++ -lpthread -Wl,-Bdynamic) - endif() + #if(MINGW) + # list(APPEND LINKLIBS -static gcc stdc++ pthread -dynamic) + #else() + # list(APPEND LINKLIBS -Wl,-Bstatic -lgcc -lstdc++ -lpthread -Wl,-Bdynamic) + #endif() endif() list(APPEND LINKLIBS ${EXTLIBS}) @@ -119,7 +119,8 @@ target_compile_options(${PROJECT_NAME} PRIVATE ${COMPOPTS}) target_link_options(${PROJECT_NAME} PRIVATE ${LINKOPTS}) target_link_libraries(${PROJECT_NAME} ${LINKLIBS}) - +# Linux file format patch +add_custom_target(format-patch COMMAND dos2unix `git ls-files` WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) # GPG signature custom command #add_custom_command(