1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-22 18:15:25 +01:00

build: make non-MSVC executables statically linked

When building in MSYS2/MinGW64, I was missing multiple DLLs necessary
to run the EXE files from a command prompt.
This commit is contained in:
Tom Collins
2020-06-23 22:41:05 -07:00
parent 60c6859c35
commit 213c69dfc1

View File

@@ -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()