|
@@ -504,16 +504,22 @@ elseif(OS_POSIX)
|
|
|
target_compile_options(obs PRIVATE -Wno-unqualified-std-cast-call)
|
|
|
endif()
|
|
|
|
|
|
- if(OS_LINUX AND ENABLE_WHATSNEW)
|
|
|
- find_package(MbedTLS)
|
|
|
- find_package(nlohmann_json REQUIRED)
|
|
|
- if(NOT MBEDTLS_FOUND)
|
|
|
- obs_status(FATAL_ERROR "mbedTLS not found, but required for WhatsNew support on Linux")
|
|
|
+ if(OS_LINUX)
|
|
|
+ if(USE_XDG)
|
|
|
+ target_compile_definitions(obs PRIVATE USE_XDG)
|
|
|
endif()
|
|
|
|
|
|
- target_sources(obs PRIVATE update/crypto-helpers.hpp update/crypto-helpers-mbedtls.cpp update/shared-update.cpp
|
|
|
- update/shared-update.hpp update/update-helpers.cpp update/update-helpers.hpp)
|
|
|
- target_link_libraries(obs PRIVATE Mbedtls::Mbedtls nlohmann_json::nlohmann_json OBS::blake2)
|
|
|
+ if(ENABLE_WHATSNEW)
|
|
|
+ find_package(MbedTLS)
|
|
|
+ find_package(nlohmann_json REQUIRED)
|
|
|
+ if(NOT MBEDTLS_FOUND)
|
|
|
+ obs_status(FATAL_ERROR "mbedTLS not found, but required for WhatsNew support on Linux")
|
|
|
+ endif()
|
|
|
+
|
|
|
+ target_sources(obs PRIVATE update/crypto-helpers.hpp update/crypto-helpers-mbedtls.cpp update/shared-update.cpp
|
|
|
+ update/shared-update.hpp update/update-helpers.cpp update/update-helpers.hpp)
|
|
|
+ target_link_libraries(obs PRIVATE Mbedtls::Mbedtls nlohmann_json::nlohmann_json OBS::blake2)
|
|
|
+ endif()
|
|
|
endif()
|
|
|
endif()
|
|
|
|