Skip to content

Commit

Permalink
Added MSVC ccache support. Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitozz committed May 7, 2024
1 parent 3dae580 commit baa780a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ if(USE_CCACHE)
find_program(CCACHE_PATH ccache DOC "Path to ccache")
if(CCACHE_PATH)
message(STATUS "Found ccache at ${CCACHE_PATH}")
if(MSVC AND (CMAKE_VERSION VERSION_GREATER "3.13.0"))
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<$<CONFIG:Debug,RelWithDebInfo>:Embedded>")
set(CMAKE_VS_GLOBALS
"TrackFileAccess=false"
"UseMultiToolTask=true"
"DebugInformationFormat=OldStyle"
)
endif()
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_PATH})
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_PATH})
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/psitabwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void PsiTabWidget::setTabText(QWidget *widget, const QString &label)
shortLabel = label.first(37) + "...";
#endif
int maxLength = 80;
// If label text is longer than 80 symbols then make lable multiline
// If label is longer than 80 symbols make this label multiline
if (labelSize > maxLength) {
QStringList sentences;
for (int i = 0; i < labelSize;) {
Expand Down

0 comments on commit baa780a

Please sign in to comment.