Test expected no-op instead of aborting the build.
Aborting causes make clean to fail if the executable is not created.
This commit is contained in:
parent
6aca0e257b
commit
ffaa127b19
|
@ -76,7 +76,10 @@ endmacro()
|
||||||
|
|
||||||
macro(build_fail Include Library LibrarySource Source Message)
|
macro(build_fail Include Library LibrarySource Source Message)
|
||||||
_do_build(${Include} ${Library} ${LibrarySource} "${Source}")
|
_do_build(${Include} ${Library} ${LibrarySource} "${Source}")
|
||||||
test_fail(Result ${Message})
|
if((USE_COMPILER_HIDDEN_VISIBILITY AND COMPILER_HAS_HIDDEN_VISIBILITY) OR WIN32)
|
||||||
|
test_fail(Result ${Message})
|
||||||
|
endif()
|
||||||
|
test_pass(Result ${Message})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(build_pass Include Library LibrarySource Source Message)
|
macro(build_pass Include Library LibrarySource Source Message)
|
||||||
|
@ -88,12 +91,6 @@ include(GenerateExportHeader)
|
||||||
|
|
||||||
add_compiler_export_flags()
|
add_compiler_export_flags()
|
||||||
|
|
||||||
if(NOT ((USE_COMPILER_HIDDEN_VISIBILITY AND COMPILER_HAS_HIDDEN_VISIBILITY) OR WIN32))
|
|
||||||
message(WARNING "Compiler does not support export feature")
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_definitions(-DCOMPILER_IS_MSVC)
|
add_definitions(-DCOMPILER_IS_MSVC)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue