diff --git a/template.cmake b/template.cmake index dbb2f14..2884ee2 100644 --- a/template.cmake +++ b/template.cmake @@ -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