SET(PLUGINSDIR "${CMAKE_INSTALL_PREFIX}/share/rspamd")
ENDIF(NOT PLUGINSDIR)
+# Set libdir
+IF(NOT LIBDIR)
+ SET(LIBDIR lib/rspamd)
+ IF(NOT CMAKE_INSTALL_RPATH)
+ SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${LIBDIR})
+ ENDIF(NOT CMAKE_INSTALL_RPATH)
+ENDIF(NOT LIBDIR)
+
+# Set includedir
+IF(NOT INCLUDEDIR)
+ SET(INCLUDEDIR include/rspamd)
+ENDIF(NOT INCLUDEDIR)
+
############################# INCLUDE SECTION #############################################
INCLUDE(CheckIncludeFiles)
SET(CMAKE_INSTALL_RPATH "${PREFIX}/lib")
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
-# Set libdir
-IF(NOT LIBDIR)
- SET(LIBDIR lib/rspamd)
- IF(NOT CMAKE_INSTALL_RPATH)
- SET(CMAKE_INSTALL_RPATH ${PREFIX}/${LIBDIR})
- ENDIF(NOT CMAKE_INSTALL_RPATH)
-ENDIF(NOT LIBDIR)
-
-# Set includedir
-IF(NOT INCLUDEDIR)
- SET(INCLUDEDIR include/rspamd)
-ENDIF(NOT INCLUDEDIR)
-
# Now find libraries and headers
# Find lua libraries