Side effect of AUTOMOC_PATH_PREFIX on AUTOMOC_MOC_OPTIONS
Hello,
Not sure if this is an issue or intended behavior. It exist since 3.16.0.
If CMAKE_AUTOMOC_PATH_PREFIX is ON and the file that is moc-ed is in a subdir than all header files in AUTOMOC_MOC_OPTIONS also get that subdir as a prefix.
cmakelists.txt snippets: set (CMAKE_AUTOMOC_PATH_PREFIX ON) set (CMAKE_AUTOMOC_MOC_OPTIONS "-bStdCms.h")
Files: dialogs/ContourRegistrationDialog.cpp dialogs/ContourRegistrationDialog.h
Result: #include "dialogs/StdCms.h" #include "dialogs/ComparisonSelectionDialog.h"
Expected: #include "StdCms.h" #include "dialogs/ComparisonSelectionDialog.h"