Skip to content

Commit ec54cb7

Browse files
jktjktmichalvasko
authored andcommitted
MSVC: compat: make the POSIX shims available to all targets
Some of them have been already defined, but others are being added via submodules. Best just make them available everywhere.
1 parent ca643df commit ec54cb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ if(WIN32)
364364
target_include_directories(yangobj PRIVATE ${COMPAT_POSIX_INCLUDES})
365365
endif()
366366
target_include_directories(yang PRIVATE ${COMPAT_POSIX_INCLUDES})
367+
include_directories(${COMPAT_POSIX_INCLUDES})
367368

368369
find_package(pthreads REQUIRED)
369370
target_link_libraries(yang PThreads4W::PThreads4W)

0 commit comments

Comments
 (0)