mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 18:41:14 +00:00
cmake: Require nlohmann-json when building the front-end
Nlohmann-json is used in the about dialog, yet wasn't required when building the front-end, leading to failing compilation. This ensures that it is correctly required.
This commit is contained in:
parent
bfd8155ddc
commit
3d293bac6a
1 changed files with 5 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
# Copyright (C) 2017 Michael Fabian Dirks
|
||||
# Copyright (C) 2022 Romain Vigier
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -653,10 +654,14 @@ function(feature_frontend RESOLVE)
|
|||
elseif(NOT obs-frontend-api_FOUND)
|
||||
message(WARNING "${LOGPREFIX}Front-End requires OBS FrontEnd API. Disabling...")
|
||||
set_feature_disabled(FRONTEND ON)
|
||||
elseif(NOT HAVE_JSON)
|
||||
message(WARNING "${LOGPREFIX}Front-End requires nlohmann::json. Disabling...")
|
||||
set_feature_disabled(FRONTEND ON)
|
||||
endif()
|
||||
elseif(T_CHECK)
|
||||
set(REQUIRE_QT ON PARENT_SCOPE)
|
||||
set(REQUIRE_OBS_FRONTEND_API ON PARENT_SCOPE)
|
||||
set(REQUIRE_JSON ON PARENT_SCOPE)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
|
Loading…
Reference in a new issue