summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-12 13:57:37 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-01-12 13:57:37 (GMT)
commit6c61ffaf9b1616e6938b78ca19f17f9a9f87f3ec (patch)
treecca0a21d897711acddc7679198deb48d82ba8f99 /bootstrap
parent9fced518582afcb0875648a278821f7b82f536f4 (diff)
parent3660d063bc005aa13e7ee4836aef842a91cc87f1 (diff)
downloadCMake-6c61ffaf9b1616e6938b78ca19f17f9a9f87f3ec.zip
CMake-6c61ffaf9b1616e6938b78ca19f17f9a9f87f3ec.tar.gz
CMake-6c61ffaf9b1616e6938b78ca19f17f9a9f87f3ec.tar.bz2
Merge topic 'sun-better-stdlib'
3660d063 cmTarget: Use insert instead of std::copy. 5c28495f Help: Remove documented restriction on template use. ac3d3829 Help: Remove documented restriction on find in conditions. 36b8de56 Help: Remove documented restriction on insert APIs. 6162c919 Use two-iterator std::set::insert where appropriate. 238dd2fb Use insert instead of a loop in some cases. 2f7ef7e3 Revert "Misc. fixes for the Oracle / Sun compiler." 4c69ec6f SolarisStudio: Use alternative standard library to build CMake.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap29
1 files changed, 29 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index fe051e1..3574973 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1154,6 +1154,35 @@ if [ "x${cmake_cxx_compiler_is_gnu}" != "x1" ]; then
cmake_test_flags=
fi
+
+if [ "x${cmake_cxx_compiler_is_gnu}" != "x1" ]; then
+ # Are we SolarisStudio?
+
+ TMPFILE=`cmake_tmp_file`
+ echo '
+ #if defined(__SUNPRO_CC)
+ #include <iostream>
+ int main() { std::cout << "This is SolarisStudio" << std::endl; return 0;}
+ #endif
+ ' > ${TMPFILE}.cxx
+ cmake_cxx_compiler_is_solarisstudio=0
+ if cmake_try_run "${cmake_cxx_compiler}" \
+ "${cmake_cxx_flags} " "${TMPFILE}.cxx" >> cmake_bootstrap.log 2>&1; then
+ cmake_cxx_compiler_is_solarisstudio=1
+ fi
+ if [ "x${cmake_cxx_compiler_is_solarisstudio}" = "x1" ]; then
+ echo "${cmake_cxx_compiler} is SolarisStudio compiler"
+ else
+ echo "${cmake_cxx_compiler} is not SolarisStudio compiler"
+ fi
+ rm -f "${TMPFILE}.cxx"
+
+ if [ "x${cmake_cxx_compiler_is_solarisstudio}" = "x1" ]; then
+ cmake_cxx_flags="${cmake_cxx_flags} -library=stlport4"
+ fi
+fi
+
+
# Test for kwsys features
KWSYS_NAME_IS_KWSYS=0
KWSYS_BUILD_SHARED=0