CMakeLists.txt 503 B

123456789101112131415
  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")