Codechange: Un-bitstuff commands taking a ClientID (i.e. CMD_CLIENT_ID).
[openttd-github.git] / cmake / Static.cmake
blob682527aff61f273b2f7c5017c38ff8af6f3e1e47
1 # Set static linking if the platform requires it.
3 # set_static()
5 function(set_static_if_needed)
6      if(MINGW)
7         # Let exectutables run outside MinGW environment
8         # Force searching static libs
9         set(CMAKE_FIND_LIBRARY_SUFFIXES ".a" PARENT_SCOPE)
11         # Force static linking
12         link_libraries(-static -static-libgcc -static-libstdc++)
13     endif()
14 endfunction()