|
|
@ -11,8 +11,19 @@ if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") |
|
|
|
set_source_files_properties(Cache.cpp PROPERTIES COMPILE_FLAGS -fno-rtti) |
|
|
|
endif() |
|
|
|
|
|
|
|
find_package(Git) |
|
|
|
if(GIT_FOUND) |
|
|
|
execute_process(COMMAND ${GIT_EXECUTABLE} -C ${CMAKE_CURRENT_SOURCE_DIR} describe --dirty --always |
|
|
|
OUTPUT_VARIABLE EVMJIT_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) |
|
|
|
endif() |
|
|
|
if(NOT EVMJIT_VERSION) |
|
|
|
set(EVMJIT_VERSION "unknown") |
|
|
|
endif() |
|
|
|
|
|
|
|
message("EVM JIT version: ${EVMJIT_VERSION}") |
|
|
|
|
|
|
|
add_library(${TARGET_NAME} SHARED ${SOURCES} ${HEADERS}) |
|
|
|
set_property(TARGET ${TARGET_NAME} PROPERTY FOLDER "libs") |
|
|
|
set_target_properties(${TARGET_NAME} PROPERTIES VERSION ${EVMJIT_VERSION} FOLDER "libs") |
|
|
|
|
|
|
|
include_directories(${LLVM_INCLUDE_DIRS}) |
|
|
|
|
|
|
|