1 # Set static linking if the platform requires it.
5 function(set_static_if_needed)
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++)