Skip to content

Commit

Permalink
fix(lct): fix setting LCT cmake var through LCI cmake var
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Sep 18, 2023
1 parent 040eb3a commit 485031d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lct/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
option(LCT_DEBUG "Enable LCT debug mode" OFF)
if(LCI_DEBUG)
set(LCT_DEBUG ON)
set(LCT_DEBUG ${LCI_DEBUG})
endif()
set(LCT_CACHE_LINE
64
CACHE STRING "LCT: Size of cache line (bytes)")
if(LCI_CACHE_LINE)
set(LCT_CACHE_LINE)
set(LCT_CACHE_LINE ${LCI_CACHE_LINE})
endif()
option(LCT_CONFIG_USE_ALIGNED_ALLOC "Enable memory alignment" ON)
if(LCI_CONFIG_USE_ALIGNED_ALLOC)
set(LCT_CONFIG_USE_ALIGNED_ALLOC ${LCI_CONFIG_USE_ALIGNED_ALLOC})
endif()

add_subdirectory(data_structure)

Expand Down

0 comments on commit 485031d

Please sign in to comment.