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"