From 79d7ac8849562856112016b82a377e3277f1e3dc Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Mon, 2 Oct 2023 17:25:54 -0400 Subject: [PATCH] cmake: Fix condition to disable plugin tests The CMake generator expression to enable plugin tests mistakenly used a string literal, which evaluated to 1, which enabled the plugin tests by default. Use variable notation to correctly test this value. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2093e20..0fe3f520 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,7 +128,7 @@ configure_file(src/plugin-macros.h.in plugin-macros.generated.h) target_sources(obs-websocket PRIVATE plugin-macros.generated.h) target_compile_definitions( - obs-websocket PRIVATE ASIO_STANDALONE $<$:PLUGIN_TESTS> + obs-websocket PRIVATE ASIO_STANDALONE $<$:PLUGIN_TESTS> $<$:_WEBSOCKETPP_CPP11_STL_> $<$:_WIN32_WINNT=0x0603>) target_compile_options(