Ignore:
Timestamp:
Apr 12, 2017, 12:46:33 PM (2 years ago)
Author:
nmedfort
Message:

Force object cache to be recompiled each time.

File:
1 edited

Legend:

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

    r5404 r5405  
    5757link_directories(${Boost_LIBRARY_DIR})
    5858
     59SET(OBJECT_CACHE_SRC kernels/object_cache.cpp)
     60
    5961SET(KERNEL_SRC kernels/kernel.cpp kernels/pipeline.cpp kernels/streamset.cpp kernels/interface.cpp)
    60 SET(KERNEL_SRC ${KERNEL_SRC} kernels/toolchain.cpp kernels/object_cache.cpp)
     62SET(KERNEL_SRC ${KERNEL_SRC} kernels/toolchain.cpp)
    6163SET(KERNEL_SRC ${KERNEL_SRC} kernels/s2p_kernel.cpp kernels/mmap_kernel.cpp kernels/deletion.cpp kernels/swizzle.cpp kernels/p2s_kernel.cpp kernels/stdin_kernel.cpp kernels/stdout_kernel.cpp)
    6264
     
    7375ENDIF()
    7476
    75 add_library(CodeGen ${KERNEL_SRC} ${IDISA_SRC})
     77add_library(CodeGen ${KERNEL_SRC} ${OBJECT_CACHE_SRC} ${IDISA_SRC})
    7678add_library(PabloADT ${PABLO_SRC})
    7779add_library(RegExpADT re/re_re.cpp re/re_cc.cpp re/re_rep.cpp re/re_diff.cpp re/re_intersect.cpp re/printer_re.cpp)
     
    7981add_library(CCADT cc/cc_compiler.cpp utf8_encoder.cpp utf16_encoder.cpp UCD/CaseFolding_txt.cpp cc/alphabet.cpp cc/multiplex_CCs.cpp)
    8082add_library(UCDlib UCD/unicode_set.cpp UCD/ucd_compiler.cpp UCD/PropertyObjects.cpp UCD/resolve_properties.cpp UCD/UnicodeNameData.cpp)
     83
     84# force the compiler to compile the object cache to ensure that the versioning information is up to date
     85add_custom_target(RecompileObjectCache ALL touch ${CMAKE_CURRENT_SOURCE_DIR}/${OBJECT_CACHE_SRC})
     86add_dependencies(CodeGen RecompileObjectCache)
    8187
    8288# add the executable
Note: See TracChangeset for help on using the changeset viewer.