Skip to content
Snippets Groups Projects
Commit 951e2f9c authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

CMake: fix jsoncpp includes

parent 6816cd62
No related branches found
No related tags found
1 merge request!42Dev tp
......@@ -4,11 +4,11 @@
#
# This module defines the following variables:
# JSONCPP_FOUND - True if libjsoncpp has been found.
# JSONCPP_INCLUDE_DIRS - location to look for headers,
# JSONCPP_INCLUDE_DIR - location to look for headers,
# JSONCPP_LIBRARIES - the libraries to link against libjsoncpp
 
find_path(JSONCPP_INCLUDE_DIR json/features.h
PATH_SUFFIXES include jsoncpp)
PATH_SUFFIXES include jsoncpp include/jsoncpp)
find_library(JSONCPP_LIBRARY jsoncpp)
 
include(FindPackageHandleStandardArgs)
......@@ -21,6 +21,6 @@ endif(NOT JSONCPP_FOUND)
 
set(JSONCPP_LIBRARIES ${JSONCPP_LIBRARY})
mark_as_advanced(
JSONCPP_INCLUDE_DIRS
JSONCPP_INCLUDE_DIR
JSONCPP_LIBRARIES
)
......@@ -56,7 +56,7 @@ find: Graphviz
 
[CMake:Deps:json]
link: ${JSONCPP_LIBRARIES}
include: ${jsoncpp_INCLUDE_DIRS}
include: ${JSONCPP_INCLUDE_DIR}
find: jsoncpp REQUIRED
 
[CMake:Deps:readline]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment