mirror of https://github.com/status-im/evmc.git
cmake: Always build instructions lib with PIC
This commit is contained in:
parent
c3ae5bb539
commit
10e87931b1
|
@ -10,9 +10,14 @@ add_library(
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(evmc::instructions ALIAS instructions)
|
add_library(evmc::instructions ALIAS instructions)
|
||||||
set_target_properties(instructions PROPERTIES OUTPUT_NAME evmc-instructions)
|
set_target_properties(instructions PROPERTIES
|
||||||
target_include_directories(instructions PUBLIC $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
|
OUTPUT_NAME evmc-instructions
|
||||||
|
POSITION_INDEPENDENT_CODE TRUE
|
||||||
|
)
|
||||||
|
target_include_directories(instructions PUBLIC
|
||||||
|
$<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>
|
||||||
|
)
|
||||||
|
|
||||||
if(EVMC_INSTALL)
|
if(EVMC_INSTALL)
|
||||||
install(TARGETS instructions EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
install(TARGETS instructions EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue