Skip to content

Commit

Permalink
- use static runtimes on Linux and MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Nov 9, 2022
1 parent c1bcbd4 commit 04e1768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ if(MSVC)
endforeach()
endif()

if (NOT APPLE AND NOT MSVC)
# use static runtimes on Linux and MinGW
set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -static -static-libgcc -static-libstdc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static -static-libgcc -static-libstdc++")
endif()

add_executable(acc
acc.c
error.c
Expand Down
4 changes: 2 additions & 2 deletions acc.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

// MACROS ------------------------------------------------------------------

#define VERSION_TEXT "1.58"
#define COPYRIGHT_YEARS_TEXT "1995"
#define VERSION_TEXT "1.59"
#define COPYRIGHT_YEARS_TEXT "1995-2022"

// TYPES -------------------------------------------------------------------

Expand Down

0 comments on commit 04e1768

Please sign in to comment.