added static linking of the standard libraries

This commit is contained in:
Anselme 2017-01-01 22:05:09 +01:00
parent dacfaf22c7
commit 53f173fc12

View File

@ -60,6 +60,8 @@ else()
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LIB_RELEASE_PATH}) #for SHARED
list(APPEND LIB_PATHS ${LIB_RELEASE_PATH})
add_definitions(-static-libgcc -static-libstdc++)
endif()
#create library and executable