CMakeLists.txt 692 B

1234567891011121314151617181920
  1. cmake_minimum_required(VERSION 2.8.7)
  2. project(LibB NONE)
  3. function(check_variable var_name expected_value)
  4. if(NOT "x${${var_name}}" STREQUAL "x${expected_value}")
  5. message(FATAL_ERROR "Problem with mark_as_superbuild() - CMake variable [${var_name}] is incorrectly set !\n"
  6. "current:${${var_name}}\n"
  7. "expected:${expected_value}")
  8. endif()
  9. endfunction()
  10. check_variable(LibB_VAR "LibB")
  11. check_variable(MULTIPROJECT_VAR "MultiProjectVar")
  12. check_variable(LibB_EP_LABEL_MULTIPROJECT "MULTIPROJECT_VAR_WITH_LABELS")
  13. check_variable(MULTIPROJECT_VAR_WITH_LABELS "MultiProjectVarWithLabels")
  14. check_variable(ALL_PROJECTS_VAR "AllProjectsVar")