Skip to content

Commit fe32c9d

Browse files
committed
Explicitly add gc include dir
1 parent 2f95819 commit fe32c9d

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

compiler+runtime/CMakeLists.txt

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,22 @@ add_library(
269269
src/cpp/jank/perf_native.cpp
270270
)
271271

272+
set_property(TARGET jank_lib PROPERTY OUTPUT_NAME jank)
273+
274+
target_compile_features(jank_lib PUBLIC ${jank_cxx_standard})
275+
target_compile_options(jank_lib PUBLIC ${jank_common_compiler_flags} ${jank_aot_compiler_flags})
276+
277+
# We want all deps built as static libs.
278+
set(BUILD_SHARED_LIBS OFF)
279+
280+
include(FetchContent)
281+
include(cmake/dependency/fmt.cmake)
282+
include(cmake/dependency/ftxui.cmake)
283+
include(cmake/dependency/libzippp.cmake)
284+
285+
find_package(OpenSSL REQUIRED COMPONENTS Crypto)
286+
find_package(BDWgc REQUIRED)
287+
272288
target_include_directories(
273289
jank_lib
274290
PUBLIC
@@ -278,6 +294,7 @@ target_include_directories(
278294
jank_lib
279295
SYSTEM
280296
PUBLIC
297+
${BDWGC_INCLUDE_DIR}
281298
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third-party/nanobench/include>"
282299
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third-party/folly>"
283300
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third-party/bpptree/include>"
@@ -290,22 +307,6 @@ target_include_directories(
290307
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third-party/boost-preprocessor/include>"
291308
)
292309

293-
set_property(TARGET jank_lib PROPERTY OUTPUT_NAME jank)
294-
295-
target_compile_features(jank_lib PUBLIC ${jank_cxx_standard})
296-
target_compile_options(jank_lib PUBLIC ${jank_common_compiler_flags} ${jank_aot_compiler_flags})
297-
298-
# We want all deps built as static libs.
299-
set(BUILD_SHARED_LIBS OFF)
300-
301-
include(FetchContent)
302-
include(cmake/dependency/fmt.cmake)
303-
include(cmake/dependency/ftxui.cmake)
304-
include(cmake/dependency/libzippp.cmake)
305-
306-
find_package(OpenSSL REQUIRED COMPONENTS Crypto)
307-
find_package(BDWgc REQUIRED)
308-
309310
target_link_libraries(
310311
jank_lib PRIVATE
311312
fmt::fmt

0 commit comments

Comments
 (0)