CMakeLists.txt 655 B

123456789101112131415
  1. macro(static_build_pass Source Message)
  2. build_pass("libstatic.h" "libstatic" "libstatic" "${Source}" ${Message})
  3. endmacro()
  4. macro(static_build_fail Source Message)
  5. build_fail("libstatic.h" "libstatic" "libstatic" "${Source}" ${Message})
  6. endmacro()
  7. static_build_pass("Libstatic l; return l.libstatic_exported();" "Failed to build exported.")
  8. if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES Borland)
  9. static_build_fail("Libstatic l; return l.libstatic_deprecated();" "Built use of deprecated class method. This should not be possible.")
  10. endif()
  11. static_build_fail("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.")