Solved How can I suppress overriding recipe for target warning?
-
I added CONFIG += object_parallel_to_source to pro file, so the same file name doesn't matter anymore. However, the warning is still printed.
What word should I add to QMAKE_CXXFLAGS? I can't find something to add like -XXXX (something like -Wno-unused-parameter) -
@Aaron-Kim said in How can I suppress overriding recipe for target warning?:
same file name doesn't matter anymore
Do you have repeating .cpp and .h in the .pro file?
-
@Ratzz same name, but in different folder.
-
@Aaron-Kim
Did you do clean build and runqmake
?
You can also try deleting the output folder and rebuild?
Edit: Can you try withobject_with_source
instead ofobject_parallel_to_source
? -
Thanks, it was because of output folder.
object_with_source option makes error like when I compile without an option. so I just use object_parallel_to_source