diff --git a/premake4.lua b/premake4.lua index 9549c4486..729fafc5f 100644 --- a/premake4.lua +++ b/premake4.lua @@ -1945,6 +1945,9 @@ solution "eepp" links { "eterm-static", "languages-syntax-highlighting-static" } includedirs { "src/modules/eterm/include/", "src/thirdparty" } language "C++" + if not os.is("windows") and not os.is("haiku") then + links { "pthread" } + end files { "src/tests/unit_tests/*.cpp", "src/tools/ecode/jsonhelper.cpp", "src/tools/ecode/plugins/autocomplete/snippetparser.cpp", diff --git a/premake5.lua b/premake5.lua index 9f3e51533..773be9800 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1977,6 +1977,9 @@ workspace "eepp" "src/tools/ecode/jsonhelper.cpp", "src/tools/ecode/plugins/autocomplete/snippetparser.cpp", "src/tools/ecode/plugins/autocomplete/usersnippetstore.cpp" } + filter { "system:not windows", "system:not haiku" } + links { "pthread" } + filter {} eepp_module_backward_add( false ) build_link_configuration( "eepp-unit_tests", true )