Skip to content

Commit 102b40e

Browse files
committed
change include file order
1 parent 332326e commit 102b40e

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

core/CMakeLists.txt

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,18 @@ add_dependencies(iresearch-static
365365
target_include_directories(iresearch-static
366366
SYSTEM
367367
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}
368-
PRIVATE ${ICU_INCLUDE_DIR}
369368
PRIVATE $<TARGET_PROPERTY:iresearch-ofst,INTERFACE_INCLUDE_DIRECTORIES>
370369
PUBLIC ${VPACK_INCLUDE_PATH}
371370
PUBLIC $<TARGET_PROPERTY:hwy,INTERFACE_INCLUDE_DIRECTORIES>
372371
PUBLIC $<TARGET_PROPERTY:${FASTTEXT_LIBRARY_STATIC},INTERFACE_INCLUDE_DIRECTORIES>
373372
)
374373

374+
target_include_directories(iresearch-static
375+
SYSTEM
376+
BEFORE
377+
PRIVATE ${ICU_INCLUDE_DIR}
378+
)
379+
375380
# setup MSVC specific compiler flags
376381
if (MSVC)
377382
target_compile_options(iresearch-static
@@ -487,10 +492,15 @@ set_ipo(iresearch-analyzer-text-static)
487492

488493
target_include_directories(iresearch-analyzer-text-static
489494
SYSTEM
490-
PRIVATE ${ICU_INCLUDE_DIR} # cmake on MSVC does not properly expand dependencies for linked libraries
491495
PRIVATE ${Snowball_INCLUDE_DIR}
492496
)
493497

498+
target_include_directories(iresearch-analyzer-text-static
499+
SYSTEM
500+
BEFORE
501+
PRIVATE ${ICU_INCLUDE_DIR} # cmake on MSVC does not properly expand dependencies for linked libraries
502+
)
503+
494504
set_target_properties(iresearch-analyzer-text-static
495505
PROPERTIES
496506
PREFIX lib
@@ -516,6 +526,7 @@ set_ipo(iresearch-analyzer-collation-static)
516526

517527
target_include_directories(iresearch-analyzer-collation-static
518528
SYSTEM
529+
BEFORE
519530
PRIVATE ${ICU_INCLUDE_DIR} # cmake on MSVC does not properly expand dependencies for linked libraries
520531
)
521532

@@ -565,6 +576,7 @@ set_ipo(iresearch-analyzer-norm-static)
565576

566577
target_include_directories(iresearch-analyzer-norm-static
567578
SYSTEM
579+
BEFORE
568580
PRIVATE ${ICU_INCLUDE_DIR} # cmake on MSVC does not properly expand dependencies for linked libraries
569581
)
570582

@@ -594,6 +606,11 @@ set_ipo(iresearch-analyzer-stem-static)
594606
target_include_directories(iresearch-analyzer-stem-static
595607
SYSTEM
596608
PRIVATE ${Snowball_INCLUDE_DIR}
609+
)
610+
611+
target_include_directories(iresearch-analyzer-stem-static
612+
SYSTEM
613+
BEFORE
597614
PRIVATE ${ICU_INCLUDE_DIR}
598615
)
599616

0 commit comments

Comments
 (0)