diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -30,6 +30,8 @@ # CMake adds a library path to the compiler insallation directory. # This may conflict with the depends//lib directory, so remove it. set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "") + # Build all static so there is no dll file to distribute. + add_compiler_flag(-static) endif() # CMake provides the POSITION_INDEPENDENT_CODE property to set PIC/PIE.