提交 17147c1a 编写于 作者: J Jim

Merge pull request #106 from BtbN/fix

Unset cached variables on failure in Jansson find module
......@@ -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()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册