Ignore:
Timestamp:
Sep 28, 2014, 2:41:30 PM (5 years ago)
Author:
nmedfort
Message:

Bug fix for CC_Compiler

File:
1 edited

Legend:

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

    r4187 r4196  
    4747message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
    4848
     49# Check if boost has been installed on this system.
     50set(Boost_USE_STATIC_LIBS ON)
     51set(Boost_USE_MULTITHREADED OFF) 
     52set(Boost_USE_STATIC_RUNTIME OFF)
     53include(FindBoost)
     54
    4955add_library(PabloADT pe_advance.cpp  pe_all.cpp  pe_and.cpp pe_call.cpp pe_charclass.cpp  pe_matchstar.cpp pe_scanthru.cpp pe_not.cpp  pe_or.cpp  pe_pabloe.cpp  pe_sel.cpp  pe_var.cpp  pe_xor.cpp ps_assign.cpp  ps_if.cpp  ps_pablos.cpp  ps_while.cpp printer_pablos.cpp)
    5056
    5157add_library(RegExpADT re/re_alt.cpp  re/re_cc.cpp  re/re_end.cpp  re/re_name.cpp re/re_parser.cpp  re/re_re.cpp  re/re_rep.cpp  re/re_seq.cpp re/re_start.cpp re/parsefailure.cpp  printer_re.cpp)
    5258
    53 
    54 #include_directories("${PROJECT_BINARY_DIR}")
    5559include_directories("${PROJECT_SOURCE_DIR}")
    5660include_directories("${PROJECT_SOURCE_DIR}/include")
     
    5862include_directories("${PROJECT_SOURCE_DIR}/include/simd-lib/idisa_cpp")
    5963
     64if (Boost_FOUND)
     65    include_directories(${Boost_INCLUDE_DIRS})
     66endif()
     67
    6068# add the executable
    6169add_executable(icgrep icgrep.cpp llvm_gen.cpp llvm_gen_helper.cpp utf_encoding.cpp cc_compiler.cpp  cc_compiler_helper.cpp re/re_simplifier.cpp re/re_reducer.cpp re/re_nullable.cpp re/re_compiler.cpp pbix_compiler.cpp  symbol_generator.cpp utf8_encoder.cpp unicode_categories.h unicode_categories-flat.h unicode_categories-simple.h)
    6270
    6371target_link_libraries (icgrep PabloADT RegExpADT ${REQ_LLVM_LIBRARIES})
     72if (Boost_FOUND)
     73    target_link_libraries (icgrep ${Boost_LIBRARIES})
     74endif()
     75
    6476
    6577#Check compiler support for 0x / 11
Note: See TracChangeset for help on using the changeset viewer.