fix for json 0.12
[project/rpcd.git] / CMakeLists.txt
index 8c0a4ef4f78d18bdcec0f7ae43fc047017844dce..f1e283daf69589cf0995a7b494295c0053266be9 100644 (file)
@@ -3,7 +3,8 @@ cmake_minimum_required(VERSION 2.6)
 INCLUDE(CheckFunctionExists)
 
 PROJECT(rpcd C)
-ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations -Iinclude)
+ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
+INCLUDE_DIRECTORIES(include)
 
 OPTION(FILE_SUPPORT "File plugin support" ON)
 OPTION(IWINFO_SUPPORT "libiwinfo plugin support" ON)
@@ -22,7 +23,7 @@ ENDIF()
 
 FIND_LIBRARY(json NAMES json-c json)
 FIND_LIBRARY(crypt NAMES crypt)
-IF(crypt STREQUAL "LIBS-NOTFOUND")
+IF(crypt STREQUAL "crypt-NOTFOUND")
   SET(crypt "")
 ENDIF()