[cmake-developers] CXX_STANDARD and linking (was: C++11 support broken for SolarisStudio 12.4)
CHEVRIER, Marc
marc.chevrier at sap.com
Mon Sep 28 03:55:01 EDT 2015
Hi,
Bootstrapping CMake with the flags you specify and SOlarisStudio 12.4 enable to generate a usable Cmake but some tests are failing with error related to CXX standard.
For example, test 32, CompileFeatures generates error:
32: CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
32: Missing variable is:
32: CMAKE_CXX98_EXTENSION_COMPILE_OPTION
In the meantime, I am using SolarisStudio 12.2 for CMake bootstrapping.
Anyway, the main problem is the fact that, currently, C++ standard handling is not usable on Solaris. Do have any plan to fix this problem anytime soon?
After this problem fixed, I hope CMake bootstrapping will be solved as well…
Thank you for your help.
Marc
On 25/09/15 17:24, "Brad King" <brad.king at kitware.com> wrote:
>Steve,
>
>On 09/25/2015 03:58 AM, CHEVRIER, Marc wrote:
>> * If I add option -std=c++11 in the file .../Test.dir/link.txt,
>> link is successful
>
>Compiling with a -std= flag should link with such a flag too.
>Flags like this are why CMake has always passed CMAKE_CXX_FLAGS
>to the C++ compiler when using it to drive the linker. This does
>not appear to be the case anywhere right now when the flag is added
>via CXX_STANDARD.
>
>Marc, meanwhile you should be able to bootstrap CMake with
>
> bootstrap ... -- -DCMake_NO_C_STANDARD=1 -DCMake_NO_CXX_STANDARD
>
>to skip trying to use any -std= flags.
>
>-Brad
>
More information about the cmake-developers
mailing list