CMakeLists.txt 754 B

12345678910111213141516171819202122
  1. cmake_minimum_required(VERSION 2.8.7)
  2. project(LibA 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(LibA_VAR "LibA")
  11. check_variable(LibA_EP_LABEL_LABEL_A "LibA_VAR_WITH_LABELS")
  12. check_variable(MULTIPROJECT_VAR "MultiProjectVar")
  13. check_variable(LibA_EP_LABEL_MULTIPROJECT "MULTIPROJECT_VAR_WITH_LABELS")
  14. check_variable(MULTIPROJECT_VAR_WITH_LABELS "MultiProjectVarWithLabels")
  15. check_variable(ALL_PROJECTS_VAR "AllProjectsVar")