mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 12:40:06 +00:00
Merge branch 'fix-autouic-regression' into release
This commit is contained in:
commit
1f41ec2ac2
@ -24,7 +24,7 @@ cmSourceFile::cmSourceFile(cmMakefile* mf, const std::string& name):
|
||||
this->CustomCommand = 0;
|
||||
this->Properties.SetCMakeInstance(mf->GetCMakeInstance());
|
||||
this->FindFullPathFailed = false;
|
||||
this->IsUiFile = ("ui" ==
|
||||
this->IsUiFile = (".ui" ==
|
||||
cmSystemTools::GetFilenameLastExtension(this->Location.GetName()));
|
||||
}
|
||||
|
||||
|
@ -73,6 +73,12 @@ if (CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]" AND NOT CMAKE_CONFIGURATION_
|
||||
add_definitions(-DTEST_DEBUG_CLASS)
|
||||
endif()
|
||||
|
||||
# The -no-protection option disables the generation of include guards. Verify
|
||||
# that setting the source file property has an effect by using this and
|
||||
# issue an error in the preprocessor in calwidget.cpp if the include guard
|
||||
# is defined.
|
||||
set_source_files_properties(calwidget.ui PROPERTIES AUTOUIC_OPTIONS "-no-protection")
|
||||
|
||||
add_executable(QtAutogen main.cpp calwidget.cpp second_widget.cpp foo.cpp blub.cpp bar.cpp abc.cpp
|
||||
multiplewidgets.cpp
|
||||
xyz.cpp yaf.cpp gadget.cpp $<TARGET_OBJECTS:privateSlot>
|
||||
|
@ -50,6 +50,9 @@
|
||||
#include "calwidget.h"
|
||||
|
||||
#include "ui_calwidget.h"
|
||||
#ifdef UI_CALWIDGET_H
|
||||
#error Definition of UI_CALWIDGET_H should be disabled by file option.
|
||||
#endif
|
||||
|
||||
Window::Window()
|
||||
: ui(new Ui::Window)
|
||||
|
Loading…
Reference in New Issue
Block a user