>> I am trying to use come C++v11 features and am trying to get the
>> compiling to work.
>> SET( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++" )
>>
>> PROJECT( ${PROJECT_NAME} )
>
> PROJECT will set up the compiler and stuff. And in this process it will set
> CMAKE_CXX_FLAGS, i.e. will overwrite your lines. Exchange the lines and make
> sure not to overwrite the existing flags, but append to them.
This worked.
Can you explain how I would/should have known that PROJECT will
specify compiler and stuff when I am passing it in with the cmake
command as well as using the SET statement above?
-Jason
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake