Skip to content

Commit ea3e595

Browse files
authoredMar 20, 2024
Merge pull request zerebubuth#373 from mmd-osm/patch/yajl2
Require YAJL v2 in CMakeLists
2 parents 0f05302 + 8da9838 commit ea3e595

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)