aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/EthDependencies.cmake
diff options
context:
space:
mode:
authorPaweł Bylica <chfast@gmail.com>2017-08-16 19:46:04 +0800
committerPaweł Bylica <chfast@gmail.com>2017-08-23 23:25:29 +0800
commitb9015f0fb6d4a4c332746c2e503219c9f059b657 (patch)
tree930879488430f66ea2a3e7e5952d5199957c1fb4 /cmake/EthDependencies.cmake
parent3b07c4d38e40c52ee8a4d16e56e2afa1a0f27905 (diff)
downloaddexon-solidity-b9015f0fb6d4a4c332746c2e503219c9f059b657.tar.gz
dexon-solidity-b9015f0fb6d4a4c332746c2e503219c9f059b657.tar.zst
dexon-solidity-b9015f0fb6d4a4c332746c2e503219c9f059b657.zip
CMake: Remove unused scripts
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 39ce060e..b2bcae41 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()