Changeset 4784


Ignore:
Timestamp:
Sep 21, 2015, 2:06:55 PM (4 years ago)
Author:
hongpum
Message:

Make icGrep build with system/custom LLVM

Many distributions configure llvm with the default all targets, instead of x86
only in our README. The "InitializeAllTargets?" API of LLVM used in
"generate_predefined_ucd_functions.cpp" requires to link against all the
configured targets. Thus, a new linking instruction is added to CMakeLists,
which is a no-op if we follow the building instructions in README, but will
fix the build when system/custom LLVM is used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/CMakeLists.txt

    r4778 r4784  
    9898# add the executable
    9999add_executable(generate_predefined_ucd_functions generate_predefined_ucd_functions.cpp)
    100 target_link_libraries (generate_predefined_ucd_functions RegExpADT UCDlib PabloADT CCADT)
     100llvm_map_components_to_libnames(REQ_LLVM_TARGETS ${LLVM_TARGETS_TO_BUILD})
     101target_link_libraries (generate_predefined_ucd_functions RegExpADT UCDlib PabloADT CCADT ${REQ_LLVM_TARGETS})
    101102
    102103set(PRECOMPILED_PROPERTIES_OBJ ${PROJECT_BINARY_DIR}/precompiled_properties.o)
Note: See TracChangeset for help on using the changeset viewer.