mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
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.
This commit is contained in:
parent
e9c0eee9e4
commit
16bf61aab6
@ -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 $<$<BOOL:PLUGIN_TESTS>:PLUGIN_TESTS>
|
||||
obs-websocket PRIVATE ASIO_STANDALONE $<$<BOOL:${PLUGIN_TESTS}>:PLUGIN_TESTS>
|
||||
$<$<PLATFORM_ID:Windows>:_WEBSOCKETPP_CPP11_STL_> $<$<PLATFORM_ID:Windows>:_WIN32_WINNT=0x0603>)
|
||||
|
||||
target_compile_options(
|
||||
|
Loading…
Reference in New Issue
Block a user