summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeRules.make.in2
-rw-r--r--CMakeVariables.make.in3
2 files changed, 4 insertions, 1 deletions
diff --git a/CMakeRules.make.in b/CMakeRules.make.in
index af10d2e..16ea523 100644
--- a/CMakeRules.make.in
+++ b/CMakeRules.make.in
@@ -21,7 +21,7 @@ clean: ${SUBDIR_CLEAN}
rm -f ${SRC_OBJ} ${EXECUTABLES}
CMakeTargets.make: ${CMAKE} ${srcdir}/CMakeLists.txt
- ${CMAKE} ${srcdir}/CMakeLists.txt -S${srcdir} -H${topdir} -B${CMAKE_CONFIG_DIR}
+ ${CMAKE} ${srcdir}/CMakeLists.txt -S${currentdir} -H${topdir} -B${CMAKE_CONFIG_DIR}
#------------------------------------------------------------------------------
# rules for the normal library
diff --git a/CMakeVariables.make.in b/CMakeVariables.make.in
index a2b5eeb..ac81b12 100644
--- a/CMakeVariables.make.in
+++ b/CMakeVariables.make.in
@@ -27,6 +27,9 @@ USER_CXXFLAGS = @CXXFLAGS@
# This is the path to the top of the Source tree
topdir = @fullSrcDir@
+# This is the directory that contains the source for the CMakeLists.txt file
+currentdir = `cd ${srcdir}; pwd`
+
# This is the directory configure was run in
# where the binaries will be placed
CMAKE_CONFIG_DIR = @CMAKE_CONFIG_DIR@