Commits

Shlomi Fish committed 97ab7cd
  • Participants
  • Parent commits d123c1b

Comments (0)

Files changed (1)

File src/CMakeLists.txt

 
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
 
+IF (NOT CMAKE_INSTALL_PREFIX)
+    MESSAGE (FATAL_ERROR "CMAKE_INSTALL_PREFIX must be defined. Specify it with -DCMAKE_INSTALL_PREFIX=...")
+ENDIF (NOT CMAKE_INSTALL_PREFIX)
+
+IF (NOT LIB_INSTALL_DIR)
+    MESSAGE (FATAL_ERROR "LIB_INSTALL_DIR must be defined. Specify it with -DLIB_INSTALL_DIR=...")
+ENDIF (NOT LIB_INSTALL_DIR)
+
 SET (MYPREFIX "${CMAKE_INSTALL_PREFIX}")
 STRING(LENGTH "${MYPREFIX}" MYPREFIX_LEN)
 STRING(SUBSTRING "${LIB_INSTALL_DIR}" 0 "${MYPREFIX_LEN}" LIB_MYPREFIX)