Finish moving zmap to CMake
- Generalize libjson support in CMakeLists - Remove zopt.h, zopt.c from the repository
This commit is contained in:
+5
-5
@@ -42,11 +42,11 @@ endif()
|
||||
|
||||
if(WITH_JSON)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(JSON json-c)
|
||||
if(NOT JSON_FOUND)
|
||||
set(JSON_CFLAGS "")
|
||||
set(JSON_LIBS "-ljson-c")
|
||||
include_directories("/usr/local/include/json-c/")
|
||||
pkg_check_modules(JSON json)
|
||||
if(JSON_FOUND)
|
||||
include_directories(JSON_INCLUDE_DIRS)
|
||||
else()
|
||||
message(FATAL_ERROR "Did not find libjson")
|
||||
endif()
|
||||
|
||||
add_definitions("-DJSON")
|
||||
|
||||
Reference in New Issue
Block a user