diff --git a/lib/instructions/CMakeLists.txt b/lib/instructions/CMakeLists.txt index 70990de..a50fd25 100644 --- a/lib/instructions/CMakeLists.txt +++ b/lib/instructions/CMakeLists.txt @@ -10,9 +10,14 @@ add_library( ) add_library(evmc::instructions ALIAS instructions) -set_target_properties(instructions PROPERTIES OUTPUT_NAME evmc-instructions) -target_include_directories(instructions PUBLIC $$) +set_target_properties(instructions PROPERTIES + OUTPUT_NAME evmc-instructions + POSITION_INDEPENDENT_CODE TRUE +) +target_include_directories(instructions PUBLIC + $$ +) if(EVMC_INSTALL) install(TARGETS instructions EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}) -endif() \ No newline at end of file +endif()