aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/EthDependencies.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/EthDependencies.cmake')
-rw-r--r--cmake/EthDependencies.cmake26
1 files changed, 0 insertions, 26 deletions
diff --git a/cmake/EthDependencies.cmake b/cmake/EthDependencies.cmake
index 3d05d44b..1204f186 100644
--- a/cmake/EthDependencies.cmake
+++ b/cmake/EthDependencies.cmake
@@ -55,29 +55,3 @@ if (APPLE)
endif()
include_directories(BEFORE "${PROJECT_BINARY_DIR}/include")
-
-function(eth_use TARGET REQUIRED)
- if (NOT TARGET ${TARGET})
- message(FATAL_ERROR "eth_use called for non existing target ${TARGET}")
- endif()
-
- if (TARGET ${PROJECT_NAME}_BuildInfo.h)
- add_dependencies(${TARGET} ${PROJECT_NAME}_BuildInfo.h)
- endif()
-
- foreach(MODULE ${ARGN})
- string(REPLACE "::" ";" MODULE_PARTS "${MODULE}")
- list(GET MODULE_PARTS 0 MODULE_MAIN)
- list(LENGTH MODULE_PARTS MODULE_LENGTH)
- if (MODULE_LENGTH GREATER 1)
- list(GET MODULE_PARTS 1 MODULE_SUB)
- endif()
- # TODO: check if file exists if not, throws FATAL_ERROR with detailed description
- get_target_property(TARGET_APPLIED ${TARGET} TARGET_APPLIED_${MODULE_MAIN}_${MODULE_SUB})
- if (NOT TARGET_APPLIED)
- include(Use${MODULE_MAIN})
- set_target_properties(${TARGET} PROPERTIES TARGET_APPLIED_${MODULE_MAIN}_${MODULE_SUB} TRUE)
- eth_apply(${TARGET} ${REQUIRED} ${MODULE_SUB})
- endif()
- endforeach()
-endfunction()