BUG: Rename Bootstrap directory to Bootstrap.cmk, so that on platforms such as Windows and Mac OSX it will break during in-source build

This commit is contained in:
Andy Cedilnik 2003-04-17 08:02:44 -04:00
parent 65422964f7
commit 1181ac5ee7
4 changed files with 15 additions and 15 deletions

View File

@ -34,9 +34,9 @@ ENABLE_TESTING()
# Include the standard Dart testing module
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
INCLUDE (${CMake_BINARY_DIR}/Bootstrap/Source/InitialConfigureFlags.cmake
INCLUDE (${CMake_BINARY_DIR}/Bootstrap.cmk/Source/InitialConfigureFlags.cmake
OPTIONAL)
INCLUDE (${CMake_BINARY_DIR}/Bootstrap/InitialConfigureFlags.cmake
INCLUDE (${CMake_BINARY_DIR}/Bootstrap.cmk/InitialConfigureFlags.cmake
OPTIONAL)
IF(CMAKE_CONFIGURE_INSTALL_PREFIX)

View File

@ -30,7 +30,7 @@ CMAKE_SOURCES="\
cmake_source_dir=`echo $0 | sed -n '/\//{s/\/[^\/]*$//;p;}'`
cmake_source_dir=`(cd "${cmake_source_dir}";pwd)`
cmake_binary_dir=`pwd`
cmake_bootstrap_dir="${cmake_binary_dir}/Bootstrap"
cmake_bootstrap_dir="${cmake_binary_dir}/Bootstrap.cmk"
cmake_usage()
{
@ -316,7 +316,7 @@ for a in ${CMAKE_SOURCES}; do
echo " ${cmake_cxx_compiler} ${cmake_cxx_flags} -c ${src} -o ${a}.o" >> "${cmake_bootstrap_dir}/Makefile"
done
# Write prefix to Bootstrap/InitialConfigureFlags.cmake
# Write prefix to Bootstrap.cmk/InitialConfigureFlags.cmake
echo "SET (CMAKE_CONFIGURE_INSTALL_PREFIX \"${cmake_prefix_dir}\" CACHE PATH \"Install path prefix, prepended onto install directories, For CMake this will always override CMAKE_INSTALL_PREFIX in the cache.\")" > "${cmake_bootstrap_dir}/InitialConfigureFlags.cmake"
echo "---------------------------------------------"

10
configure vendored
View File

@ -1681,23 +1681,23 @@ $RUNMAKE
else
PRGNAME=configure # Should be `basename $0`
DIRNAME=Bootstrap
DIRNAME=Bootstrap.cmk
# Check if the bootstrap directory already exists.
if test -d Bootstrap; then
if test -d ${DIRNAME}; then
:
else
# if it does not create one
mkdir Bootstrap
mkdir ${DIRNAME}
fi
if (
# Build bootstrap cmake
cd Bootstrap
cd ${DIRNAME}
echo "Bootstrapping to directory `pwd`"
BUILD_CMAKE_IN_SUBDIR=true $CMAKE_ROOT_DIR/$PRGNAME $ac_configure_args
); then
# run cmake
Bootstrap/Source/cmake $fullSrcDir
${DIRNAME}/Source/cmake $fullSrcDir
# run cmake depends
$RUNMAKE depend

View File

@ -213,23 +213,23 @@ $RUNMAKE
else
PRGNAME=configure # Should be `basename $0`
DIRNAME=Bootstrap
DIRNAME=Bootstrap.cmk
# Check if the bootstrap directory already exists.
if test -d Bootstrap; then
if test -d ${DIRNAME}; then
:
else
# if it does not create one
mkdir Bootstrap
mkdir ${DIRNAME}
fi
if (
# Build bootstrap cmake
cd Bootstrap
cd ${DIRNAME}
echo "Bootstrapping to directory `pwd`"
BUILD_CMAKE_IN_SUBDIR=true $CMAKE_ROOT_DIR/$PRGNAME $ac_configure_args
); then
# run cmake
Bootstrap/Source/cmake $fullSrcDir
${DIRNAME}/Source/cmake $fullSrcDir
# run cmake depends
$RUNMAKE depend
@ -237,4 +237,4 @@ else
echo "Problem bootstrapping CMake"
exit 1
fi
fi
fi