[ITK-users] C++11?

Becksfort, Jared Jared.Becksfort at STJUDE.ORG
Sat Apr 12 23:41:05 EDT 2014


Hello,

I was hoping to build the 4.5.2 with C++11.  Are there instructions for doing so?  I tried adding

ADD_DEFINITIONS(
    -std=c++11
)

to the CMakeLists.txt file, which felt like a hack and didn't work:

Scanning dependencies of target itksys
[ 21%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/ProcessUNIX.c.o
error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
make[2]: *** [Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/ProcessUNIX.c.o] Error 1
make[1]: *** [Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/all] Error 2
make: *** [all] Error 2

Thanks,
Jared

Email Disclaimer:  www.stjude.org/emaildisclaimer
Consultation Disclaimer:  www.stjude.org/consultationdisclaimer



More information about the Insight-users mailing list