mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 18:53:04 +08:00
[libconfig] use find path
This commit is contained in:
parent
c588de6b8f
commit
03fde38584
@ -20,7 +20,12 @@ set(CPP_SOURCES
|
||||
)
|
||||
|
||||
include_directories(lib)
|
||||
include_directories(lib/win32)
|
||||
|
||||
find_path(DIRENT_H dirent.h)
|
||||
find_path(STDINT_H stdint.h)
|
||||
|
||||
include_directories(${DIRENT_H})
|
||||
include_directories(${STDINT_H})
|
||||
|
||||
add_library(libconfig ${C_SOURCES})
|
||||
add_library(libconfig++ ${C_SOURCES} ${CPP_SOURCES})
|
||||
|
@ -15,12 +15,8 @@ vcpkg_apply_patches(
|
||||
"${CMAKE_CURRENT_LIST_DIR}/fix-scanner-header-msvc-patch.patch"
|
||||
)
|
||||
|
||||
set(WIN_SRC ${SOURCE_PATH}/lib/win32)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/scandir.c DESTINATION ${WIN_SRC})
|
||||
file(COPY ${CURRENT_INSTALLED_DIR}/include/dirent.h DESTINATION ${WIN_SRC})
|
||||
file(COPY ${CURRENT_INSTALLED_DIR}/include/stdint.h DESTINATION ${WIN_SRC})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/scandir.c DESTINATION ${SOURCE_PATH}/lib/win32)
|
||||
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
|
Loading…
Reference in New Issue
Block a user