mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-07 10:19:57 +08:00
Tweak for earlier VC++ Atudio compatibilty.
This commit is contained in:
parent
a8aa4ce273
commit
9e6dbbf06d
@ -23,6 +23,14 @@ if(USE_STD_MAKE_SHARED)
|
|||||||
add_definitions(-DCHAISCRIPT_USE_STD_MAKE_SHARED)
|
add_definitions(-DCHAISCRIPT_USE_STD_MAKE_SHARED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
function(add_clang_static_analysis target)
|
||||||
|
get_target_property(SRCs ${target} SOURCES)
|
||||||
|
add_library(${target}_analyze OBJECT EXCLUDE_FROM_ALL ${SRCs})
|
||||||
|
set_target_properties(${target}_analyze PROPERTIES
|
||||||
|
COMPILE_OPTIONS "--analyze"
|
||||||
|
EXCLUDE_FROM_DEFAULT_BUILD true)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCC)
|
if(CMAKE_COMPILER_IS_GNUCC)
|
||||||
option(ENABLE_COVERAGE "Enable Coverage Reporting in GCC" FALSE)
|
option(ENABLE_COVERAGE "Enable Coverage Reporting in GCC" FALSE)
|
||||||
|
|
||||||
|
|||||||
@ -583,7 +583,7 @@ namespace Catch {
|
|||||||
struct AssertionInfo
|
struct AssertionInfo
|
||||||
{
|
{
|
||||||
StringRef macroName;
|
StringRef macroName;
|
||||||
SourceLineInfo lineInfo{};
|
SourceLineInfo lineInfo;
|
||||||
StringRef capturedExpression;
|
StringRef capturedExpression;
|
||||||
ResultDisposition::Flags resultDisposition;
|
ResultDisposition::Flags resultDisposition;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user