From 0cf48de86e0fd1554ce22a0ce35d0f72ff6998fa Mon Sep 17 00:00:00 2001 From: Lightspeed Date: Sun, 8 Jan 2023 12:23:19 -0600 Subject: [PATCH] Fix issue where YAML compiles as a dll --- premake5.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/premake5.lua b/premake5.lua index 662890e4c..53eb595e5 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1,6 +1,7 @@ project "yaml-cpp" kind "StaticLib" language "C++" + staticruntime "on" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") @@ -13,6 +14,11 @@ project "yaml-cpp" "include/**.h" } + defines + { + "YAML_CPP_STATIC_DEFINE" + } + includedirs { "include" @@ -21,13 +27,13 @@ project "yaml-cpp" filter "system:windows" systemversion "latest" cppdialect "C++17" - staticruntime "off" + staticruntime "on" filter "system:linux" pic "On" systemversion "latest" cppdialect "C++17" - staticruntime "off" + staticruntime "on" filter "configurations:Debug" runtime "Debug"