|
@@ -4,18 +4,18 @@
|
|
|
|
|
|
superbuild_include_once()
|
|
|
|
|
|
-set(proj LibD)
|
|
|
+set(proj_libd LibD)
|
|
|
|
|
|
-set(${proj}_DEPENDENCIES "")
|
|
|
+set(${proj_libd}_DEPENDENCIES "")
|
|
|
|
|
|
-superbuild_include_dependencies(${proj})
|
|
|
+superbuild_include_dependencies(PROJECT_VAR proj_libd)
|
|
|
|
|
|
-if(${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj})
|
|
|
+if(${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj_libd})
|
|
|
unset(LibD_DIR CACHE)
|
|
|
endif()
|
|
|
|
|
|
mark_as_superbuild(
|
|
|
- VARS ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj}:BOOL
|
|
|
+ VARS ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj_libd}:BOOL
|
|
|
LABELS "USE_SYSTEM"
|
|
|
)
|
|
|
|
|
@@ -24,11 +24,11 @@ if(DEFINED LibD_DIR AND NOT EXISTS ${LibD_DIR})
|
|
|
message(FATAL_ERROR "LibD_DIR variable is defined but corresponds to non-existing directory")
|
|
|
endif()
|
|
|
|
|
|
-if(NOT DEFINED LibD_DIR AND NOT ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj})
|
|
|
+if(NOT DEFINED LibD_DIR AND NOT ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj_libd})
|
|
|
|
|
|
- message(FATAL_ERROR "Disabling ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj} is not supported !")
|
|
|
+ message(FATAL_ERROR "Disabling ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj_libd} is not supported !")
|
|
|
|
|
|
else()
|
|
|
- superbuild_add_empty_external_project(${proj} "${${proj}_DEPENDENCIES}")
|
|
|
+ superbuild_add_empty_external_project(${proj_libd} "${${proj_libd}_DEPENDENCIES}")
|
|
|
endif()
|
|
|
|