Skip to content

Commit 8da9838

Browse files
committed
Require YAJL v2 in CMakeLists
1 parent 0f05302 commit 8da9838

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CMakeLists.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,10 @@ target_compile_definitions(cgimap_common_compiler_options INTERFACE
9797
HAVE_CRYPTOPP=$<BOOL:${CryptoPP_FOUND}>)
9898

9999
if(ENABLE_YAJL)
100-
find_package(YAJL REQUIRED)
100+
find_package(YAJL 2 REQUIRED)
101101
endif()
102102
target_compile_definitions(cgimap_common_compiler_options INTERFACE
103-
HAVE_YAJL=$<BOOL:${YAJL_FOUND}>
104-
HAVE_YAJL2=$<VERSION_GREATER_EQUAL:${YAJL_VERSION},2>)
103+
HAVE_YAJL=$<BOOL:${YAJL_FOUND}>)
105104

106105
find_package(Fcgi REQUIRED)
107106
target_compile_definitions(cgimap_common_compiler_options INTERFACE

0 commit comments

Comments
 (0)