Skip to content

Commit 28e25f8

Browse files
committed
build: prefer to use CMake to propagate include directories
1 parent a14d7d8 commit 28e25f8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

extensions/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ set(LIBRARY_SOURCES
1212
tasklist.c
1313
)
1414

15-
include_directories(
16-
${PROJECT_SOURCE_DIR}/src/include
17-
${PROJECT_BINARY_DIR}/src
18-
)
19-
2015
include_directories(include)
2116

2217
if (CMARK_SHARED)
@@ -43,6 +38,8 @@ if (CMARK_STATIC)
4338
add_library(${STATICLIBRARY} STATIC ${LIBRARY_SOURCES})
4439
target_compile_definitions(${STATICLIBRARY} PUBLIC
4540
CMARK_GFM_STATIC_DEFINE)
41+
target_link_libraries(${STATICLIBRARY} PRIVATE
42+
libcmark-gfm)
4643

4744
set_target_properties(${STATICLIBRARY} PROPERTIES
4845
POSITION_INDEPENDENT_CODE ON)

0 commit comments

Comments
 (0)