aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorIsaac Hier <isaachier@gmail.com>2018-03-11 09:58:26 -0400
committerIsaac Hier <isaachier@gmail.com>2018-03-11 09:59:52 -0400
commit6d1ae86e1c1942c46203b788fa410e91f3963483 (patch)
tree66aa68a17fd94b7f448e2eb9a471c408e5fd6098 /cmake
parenta324d18940a7f3bfb3f4d684f0421f297316b426 (diff)
downloadjansson-6d1ae86e1c1942c46203b788fa410e91f3963483.zip
jansson-6d1ae86e1c1942c46203b788fa410e91f3963483.tar.gz
jansson-6d1ae86e1c1942c46203b788fa410e91f3963483.tar.bz2
Fix config file
Diffstat (limited to 'cmake')
-rw-r--r--cmake/janssonConfig.cmake.in19
1 files changed, 3 insertions, 16 deletions
diff --git a/cmake/janssonConfig.cmake.in b/cmake/janssonConfig.cmake.in
index d00b3c4..abd6793 100644
--- a/cmake/janssonConfig.cmake.in
+++ b/cmake/janssonConfig.cmake.in
@@ -1,17 +1,4 @@
-# - Config file for the jansson package
-# It defines the following variables
-# JANSSON_INCLUDE_DIRS - include directories for FooBar
-# JANSSON_LIBRARIES - libraries to link against
-
-# Get the path of the current file.
-get_filename_component(JANSSON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
-
-# Set the include directories.
-set(JANSSON_INCLUDE_DIRS "@JANSSON__INCLUDE_DIRS@")
-
-# Include the project Targets file, this contains definitions for IMPORTED targets.
-include(${JANSSON_CMAKE_DIR}/JanssonTargets.cmake)
-
-# IMPORTED targets from JanssonTargets.cmake
-set(JANSSON_LIBRARIES jansson)
+@PACKAGE_INIT@
+include("${CMAKE_CURRENT_LIST_DIR}/janssonTargets.cmake")
+check_required_components("@PROJECT_NAME@")