mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 04:57:58 +08:00
129fb5a748
* [shogun] Fix target.cmake file path * [shogun] Fix target.cmake file path * Update the way to find dirent.h * Add fix-dirent.patch
18 lines
555 B
Diff
18 lines
555 B
Diff
diff --git a/src/shogun/CMakeLists.txt b/src/shogun/CMakeLists.txt
|
|
index fd76961..396251c 100644
|
|
--- a/src/shogun/CMakeLists.txt
|
|
+++ b/src/shogun/CMakeLists.txt
|
|
@@ -170,10 +170,10 @@ IF(MSVC)
|
|
ENDIF()
|
|
|
|
# bundle dirent
|
|
- include(external/MSDirent)
|
|
+ find_path(MSDIRENT_INCLUDE_DIR NAMES dirent.h)
|
|
SHOGUN_INCLUDE_DIRS(SCOPE PUBLIC
|
|
$<BUILD_INTERFACE:${MSDIRENT_INCLUDE_DIR}>
|
|
- $<INSTALL_INTERFACE:include/shogun/lib/external/MSDirent>
|
|
+ $<INSTALL_INTERFACE:include>
|
|
)
|
|
|
|
target_link_libraries(shogun PUBLIC winmm)
|