2011-07-13 04:13:33 +04:00
|
|
|
|
|
|
|
macro(static_build_pass Source Message)
|
|
|
|
build_pass("libstatic.h" "libstatic" "libstatic" "${Source}" ${Message})
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
macro(static_build_fail Source Message)
|
|
|
|
build_fail("libstatic.h" "libstatic" "libstatic" "${Source}" ${Message})
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
static_build_pass("Libstatic l; return l.libstatic_exported();" "Failed to build exported.")
|
|
|
|
|
2011-08-11 00:19:39 +04:00
|
|
|
if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES Borland)
|
|
|
|
static_build_fail("Libstatic l; return l.libstatic_deprecated();" "Built use of deprecated class method. This should not be possible.")
|
|
|
|
endif()
|
2011-07-13 04:13:33 +04:00
|
|
|
static_build_fail("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.")
|