1diff --git a/CMakeLists.txt b/CMakeLists.txt
2index 601b92b..b440f83 100644
3--- a/CMakeLists.txt
4+++ b/CMakeLists.txt
5@@ -36,27 +36,10 @@ if(OPENSSL_FOUND)
6 MESSAGE(STATUS "Using OpenSSL ${OPENSSL_VERSION}")
7 ENDIF()
8
9-# Sets a variable that the user can set with
10-# cmake -DIRSSI_INCLUDE_DIR:PATH=/path/to/irssi/includes .
11-SET(IRSSI_INCLUDE_DIR "" CACHE PATH "Path to irssi include files")
12-
13-# Tries to find the irssi include files in the most common places,
14-# and in the user defined directory
15-FIND_PATH(IRSSI_INCLUDE_PATH
16- NAMES irssi-config.h src/common.h
17- PATHS /usr/include/irssi /usr/local/include/irssi ${IRSSI_INCLUDE_DIR}
18-)
19-
20-# Bail out if the required irssi files werent found
21-IF(NOT IRSSI_INCLUDE_PATH)
22- MESSAGE(SEND_ERROR "Could not detect the irssi include files. Please run:\n# cmake -DIRSSI_INCLUDE_DIR:PATH=/path/to/irssi/includes .")
23- RETURN()
24-ENDIF()
25-
26 MESSAGE(STATUS "irssi includes were found on ${IRSSI_INCLUDE_PATH}")
27
28 # Add the weirdo irssi includes directories
29-INCLUDE_DIRECTORIES(${IRSSI_INCLUDE_PATH} ${IRSSI_INCLUDE_PATH}/src ${IRSSI_INCLUDE_PATH}/src/fe-common/core ${IRSSI_INCLUDE_PATH}/src/core)
30+INCLUDE_DIRECTORIES(${IRSSI_INCLUDE_PATH} ${IRSSI_INCLUDE_PATH}/irssi ${IRSSI_INCLUDE_PATH}/irssi/src ${IRSSI_INCLUDE_PATH}/irssi/src/fe-common/core ${IRSSI_INCLUDE_PATH}/irssi/src/core)
31
32 MESSAGE(STATUS "The module will be installed by default to ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/irssi/modules")
33 MESSAGE(STATUS "You can change it with 'cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .'")