aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-06-16 22:05:02 +0000
committerAlexander Neundorf <neundorf@kde.org>2008-06-16 22:05:02 +0000
commitb190b964ae523a1f9244f53ac960b952d63daa5c (patch)
treeb75cb07ac4f988f0b17bea36578f9dc6119a1d7a
parent2a7e5d68444a42f38f1e093155fc3516a6036384 (diff)
downloadextra-cmake-modules-b190b964ae523a1f9244f53ac960b952d63daa5c.tar.gz
extra-cmake-modules-b190b964ae523a1f9244f53ac960b952d63daa5c.tar.bz2
-first search in KDE4_BIN_INSTALL_DIR, since this is most probably where rcgen is to find
-lowercase find_program() -fix documentation format Alex CCMAIL: <winter@kde.org> svn path=/trunk/KDE/kdelibs/; revision=821234
-rw-r--r--modules/NepomukMacros.cmake14
1 files changed, 5 insertions, 9 deletions
diff --git a/modules/NepomukMacros.cmake b/modules/NepomukMacros.cmake
index 0e1fe45b..14acd2bb 100644
--- a/modules/NepomukMacros.cmake
+++ b/modules/NepomukMacros.cmake
@@ -1,13 +1,6 @@
# This file contains the following macros:
#
# NEPOMUK_GENERATE_FROM_ONTOLOGY
-#
-
-
-#
-# NEPOMUK_GENERATE_FROM_ONTOLOGY
-# (C) 2007 Sebastian Trueg <trueg@kde.org>
-#
# Parameters:
# ontofile - Path to the NRL ontology defining the resources to be generated.
# targetdir - Folder to which the generated sources should be written.
@@ -19,13 +12,16 @@
# In addition to the parameters an arbitrary number of template filenames can be set as arguments
#
# In case of success NEPOMUK_RESOURCES_GENERATED is true, otherwise false
-#
+
+# (C) 2007 Sebastian Trueg <trueg@kde.org>
+
+
macro(NEPOMUK_GENERATE_FROM_ONTOLOGY ontofile targetdir out_headers out_sources out_includes)
# init
set(NEPOMUK_RESOURCES_GENERATED false)
- FIND_PROGRAM(RCGEN nepomuk-rcgen PATHS ${BIN_INSTALL_DIR} NO_DEFAULT_PATH)
+ find_program(RCGEN nepomuk-rcgen PATHS ${KDE4_BIN_INSTALL_DIR} ${BIN_INSTALL_DIR} NO_DEFAULT_PATH)
if(NOT RCGEN)