QtCreator not using compile flags
-
I am using some outside code that uses the ".c" extension but uses c++ syntax. I've put the "QMAKE_CXXFLAGS += /TP" in my ".pro" file, and QtCreator (using VS2013) isn't using this flag. If I use the Qt plugin for VS2013 and build the project inside VS2013, it uses the "/TP" flag and everything works.
QtCreator bug? Is there a work around? I tried both QMAKE_CXXFLAGS and QMAKE_CXXFLAGS_DEBUG. The outside vendor gives us updates, so renaming the .c's to .cpp isn't an option.
-
Try using the QMAKE_EXT_CPP qmake variable to have .c files treated as c++ files.