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:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user