diff --git a/CMakeLists.txt b/CMakeLists.txt index 75b7ac9..b949ae3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,6 +169,9 @@ if(MSVC) set(YAML_CPP_LIB "${CMAKE_STATIC_LIBRARY_PREFIX}${YAML_CPP_LIB}${LIB_RT_SUFFIX}") set(YAML_CPP_LIB_DBG "${YAML_CPP_LIB}d") endif() +else() + # make sure executable files are standalone + SET(CMAKE_EXE_LINKER_FLAGS "-static") endif()