mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-25 07:58:59 -06:00
Merge topic 'lcc-cleanup'
2de1458c3cTests: Teach CheckSourceTree test to clean up some specific known files0dfd939077cmFindPackageCommand: Suppress LCC false-positive warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7790
This commit is contained in:
@@ -377,6 +377,8 @@ private:
|
||||
# pragma diag_suppress 1222 // invalid error number (3288, but works anyway)
|
||||
# define CM_LCC_DIAG_SUPPRESS_3288
|
||||
# pragma diag_suppress 3288 // parameter was declared but never referenced
|
||||
# define CM_LCC_DIAG_SUPPRESS_3301
|
||||
# pragma diag_suppress 3301 // parameter was declared but never referenced
|
||||
#endif
|
||||
|
||||
void ResetGenerator()
|
||||
@@ -421,6 +423,11 @@ bool TryGeneratedPaths(CallbackFn&& filesCollector,
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef CM_LCC_DIAG_SUPPRESS_3301
|
||||
# undef CM_LCC_DIAG_SUPPRESS_3301
|
||||
# pragma diag_default 3301
|
||||
#endif
|
||||
|
||||
#ifdef CM_LCC_DIAG_SUPPRESS_3288
|
||||
# undef CM_LCC_DIAG_SUPPRESS_3288
|
||||
# pragma diag_default 3288
|
||||
|
||||
@@ -3,6 +3,13 @@ if(DEFINED ENV{CTEST_REAL_HOME})
|
||||
set(ENV{HOME} "$ENV{CTEST_REAL_HOME}")
|
||||
endif()
|
||||
|
||||
file(GLOB known_files
|
||||
"${CMake_SOURCE_DIR}/Tests/JavaExportImport/InstallExport/hs_err_pid*.log"
|
||||
)
|
||||
if(known_files)
|
||||
file(REMOVE ${known_files})
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND "${GIT_EXECUTABLE}" status
|
||||
WORKING_DIRECTORY "${CMake_SOURCE_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user