[latexila] CMake: absolute path for SCHEMA_DIR and ICONS_DIR



commit 288df9efc0e04216ca2c8859d6917fec5911b5d1
Author: SÃbastien Wilmet <swilmet src gnome org>
Date:   Wed May 16 22:38:10 2012 +0200

    CMake: absolute path for SCHEMA_DIR and ICONS_DIR
    
    The variable CMAKE_INSTALL_PREFIX can be a relative path before calling
    the project() function. After, it is an absolute path, no problem.

 CMakeLists.txt |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5ad0e8..9ed5fba 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,10 +1,7 @@
 cmake_minimum_required (VERSION 2.6.4)
 
-# Some variables
 set (APP_NAME "LaTeXila")
 set (APP_VERSION "2.5.1")
-set (SCHEMA_DIR "${CMAKE_INSTALL_PREFIX}/share")
-set (ICONS_DIR "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor")
 
 message (STATUS "*** Building ${APP_NAME} ${APP_VERSION} ***")
 
@@ -27,6 +24,10 @@ set (WITH_GNOME OFF CACHE BOOL
 set (COMPILE_SCHEMA ON CACHE BOOL "Compile the GSettings schema")
 set (VALAC "" CACHE FILEPATH "The valac executable to use")
 
+# Some variables
+set (SCHEMA_DIR "${CMAKE_INSTALL_PREFIX}/share")
+set (ICONS_DIR "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor")
+
 # Native Language Support
 set (GETTEXT_PACKAGE "latexila")
 set (LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]