mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Correct library usage.
This commit is contained in:
parent
226ed7b9dc
commit
ccd78d05d6
@ -22,9 +22,9 @@ function(eth_apply TARGET REQUIRED SUBMODULE)
|
||||
|
||||
endif()
|
||||
|
||||
if (${SUBMODULE} STREQUAL "devcore")
|
||||
if (${SUBMODULE} STREQUAL "soldevcore")
|
||||
eth_use(${TARGET} ${REQUIRED} Dev::base)
|
||||
target_link_libraries(${TARGET} devcore)
|
||||
target_link_libraries(${TARGET} soldevcore)
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
|
@ -25,7 +25,7 @@ function(eth_apply TARGET REQUIRED SUBMODULE)
|
||||
endif()
|
||||
|
||||
if (${SUBMODULE} STREQUAL "solidity" OR ${SUBMODULE} STREQUAL "")
|
||||
eth_use(${TARGET} ${REQUIRED} Dev::devcore Solidity::evmasm)
|
||||
eth_use(${TARGET} ${REQUIRED} Dev::soldevcore Solidity::evmasm)
|
||||
target_link_libraries(${TARGET} ${Solidity_SOLIDITY_LIBRARIES})
|
||||
endif()
|
||||
|
||||
|
@ -8,7 +8,7 @@ file(GLOB HEADERS "*.h")
|
||||
|
||||
include_directories(BEFORE ..)
|
||||
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
||||
eth_use(${EXECUTABLE} REQUIRED Jsoncpp Dev::devcore)
|
||||
eth_use(${EXECUTABLE} REQUIRED Jsoncpp Dev::soldevcore)
|
||||
|
||||
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
|
||||
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )
|
||||
|
@ -15,7 +15,7 @@ file(GLOB HEADERS "*/*.h")
|
||||
include_directories(BEFORE ..)
|
||||
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
||||
|
||||
eth_use(${EXECUTABLE} REQUIRED Dev::devcore Solidity::evmasm)
|
||||
eth_use(${EXECUTABLE} REQUIRED Dev::soldevcore Solidity::evmasm)
|
||||
|
||||
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
|
||||
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )
|
||||
|
@ -116,7 +116,7 @@ emcmake cmake \
|
||||
-DJSONCPP_INCLUDE_DIR="$WORKSPACE"/jsoncpp/include/ \
|
||||
-DCRYPTOPP_LIBRARY="$WORKSPACE"/cryptopp/src/libcryptlib.a \
|
||||
-DCRYPTOPP_INCLUDE_DIR="$WORKSPACE"/cryptopp/src/ \
|
||||
-DDev_DEVCORE_LIBRARY="$WORKSPACE"/solidity/build/libdevcore/libdevcore.a \
|
||||
-DDev_DEVCORE_LIBRARY="$WORKSPACE"/solidity/build/libdevcore/libsoldevcore.a \
|
||||
-DEth_EVMASM_LIBRARY="$WORKSPACE"/solidity/build/libevmasm/libevmasm.a \
|
||||
-DETH_STATIC=1 -DTESTS=0 \
|
||||
..
|
||||
|
Loading…
Reference in New Issue
Block a user