mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Ensure liblangutil is compiled and linked as its own static library.
This commit is contained in:
parent
2518b5314c
commit
80371e2d25
@ -45,6 +45,7 @@ include(EthOptions)
|
|||||||
configure_project(TESTS)
|
configure_project(TESTS)
|
||||||
|
|
||||||
add_subdirectory(libdevcore)
|
add_subdirectory(libdevcore)
|
||||||
|
add_subdirectory(liblangutil)
|
||||||
add_subdirectory(libevmasm)
|
add_subdirectory(libevmasm)
|
||||||
add_subdirectory(libsolidity)
|
add_subdirectory(libsolidity)
|
||||||
add_subdirectory(libsolc)
|
add_subdirectory(libsolc)
|
||||||
|
6
liblangutil/CMakeLists.txt
Normal file
6
liblangutil/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Solidity Commons Library (Solidity related sharing bits between libsolidity and libyul)
|
||||||
|
file(GLOB sources "*.cpp")
|
||||||
|
file(GLOB headers "*.h")
|
||||||
|
|
||||||
|
add_library(langutil ${sources} ${headers})
|
||||||
|
target_link_libraries(langutil PUBLIC devcore)
|
@ -1,6 +1,6 @@
|
|||||||
# Until we have a clear separation, libyul has to be included here
|
# Until we have a clear separation, libyul has to be included here
|
||||||
file(GLOB_RECURSE sources "*.cpp" "../libyul/*.cpp" "../liblangutil/*.cpp")
|
file(GLOB_RECURSE sources "*.cpp" "../libyul/*.cpp")
|
||||||
file(GLOB_RECURSE headers "*.h" "../libyul/*.h" "../liblangutil/*.h")
|
file(GLOB_RECURSE headers "*.h" "../libyul/*.h")
|
||||||
|
|
||||||
find_package(Z3 QUIET)
|
find_package(Z3 QUIET)
|
||||||
if (${Z3_FOUND})
|
if (${Z3_FOUND})
|
||||||
@ -26,7 +26,7 @@ if (NOT (${Z3_FOUND} OR ${CVC4_FOUND}))
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(solidity ${sources} ${headers})
|
add_library(solidity ${sources} ${headers})
|
||||||
target_link_libraries(solidity PUBLIC evmasm devcore ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY})
|
target_link_libraries(solidity PUBLIC evmasm langutil devcore ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY})
|
||||||
|
|
||||||
if (${Z3_FOUND})
|
if (${Z3_FOUND})
|
||||||
target_link_libraries(solidity PUBLIC ${Z3_LIBRARY})
|
target_link_libraries(solidity PUBLIC ${Z3_LIBRARY})
|
||||||
|
Loading…
Reference in New Issue
Block a user