Closed IanQS closed 6 years ago
If it's only generating those flags, then those are the only flags the compiler is receiving. I don't know enough about cmake to help debug this, but maybe setting them in a single line would help?
Tried that too and it wasn't working unfortunately. The strange thing is that if I use
set (CMAKE_CXX_STANDARD 11)
which should theoretically do the same thing as
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
then it works fine. Which is making me think that it's an issue with CMAKE_CXX_FLAGS?
When I run the generator on the following:
it only generates these flags:
Does anyone know what's up? Or if I'm setting variables incorrectly or something?