mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-26 15:58:51 -04:00
Unset cached variables on failure in Jansson find module
This commit is contained in:
1 parent
143882ee71
commit
602b048089
1 file changed
+5
@@ -59,5 +59,10 @@ else()
|
||||
REQUIRED_VARS Jansson_LIB Jansson_INCLUDE_DIR
|
||||
VERSION_VAR JANSSON_VERSION)
|
||||
mark_as_advanced(Jansson_INCLUDE_DIR Jansson_LIB)
|
||||
|
||||
if(NOT JANSSON_FOUND)
|
||||
unset(JANSSON_INCLUDE_DIRS CACHE)
|
||||
unset(JANSSON_LIBRARIES CACHE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user