Skip to content

Commit 42d7a60

Browse files
committed
bugfix
1 parent 14223a9 commit 42d7a60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ endif ()
399399
#------------------------------------------------------------------------
400400
set(name tidy-static)
401401
add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} )
402+
target_include_directories( ${name} PUBLIC "${PROJECT_SOURCE_DIR}/include")
402403
if (WIN32)
403404
set_target_properties( ${name} PROPERTIES
404405
OUTPUT_NAME ${LIB_NAME}_static )
@@ -427,6 +428,7 @@ if (BUILD_SHARED_LIB)
427428
set(CMAKE_MACOSX_RPATH 1)
428429
endif ()
429430
add_library ( ${name} SHARED ${CFILES} ${HFILES} ${LIBHFILES} )
431+
target_include_directories( ${name} PUBLIC "${PROJECT_SOURCE_DIR}/include")
430432
set_target_properties( ${name} PROPERTIES
431433
OUTPUT_NAME ${LIB_NAME} )
432434
set_target_properties( ${name} PROPERTIES

0 commit comments

Comments
 (0)