Skip to content

Commit

Permalink
try fix win,ios,android
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Aug 23, 2023
1 parent 4b9efe8 commit f8fcb56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vcpkg-overlay/ports/gdal/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ string(REPLACE "dynamic" "" qhull_target "Qhull::qhull${VCPKG_LIBRARY_LINKAGE}_r
# PCIDSK does not add compile interface defininions!
# do this instead of patching for now
# https://github.com/OSGeo/gdal/blob/af5b75ecc6b8d3cef36f2b6fecf085319d39a546/frmts/pcidsk/sdk/CMakeLists.txt#L84
string(APPEND VCPKG_C_FLAGS "-DRENAME_INTERNAL_LIBJPEG_SYMBOLS")
string(APPEND VCPKG_CXX_FLAGS "-DRENAME_INTERNAL_LIBJPEG_SYMBOLS")
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -DRENAME_INTERNAL_LIBJPEG_SYMBOLS")
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -DRENAME_INTERNAL_LIBJPEG_SYMBOLS")

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
Expand Down
13 changes: 12 additions & 1 deletion vcpkg-overlay/ports/libjpeg-turbo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,16 @@ target_compile_definitions(jpeg PUBLIC -DRENAME_INTERNAL_LIBJPEG_SYMBOLS)
configure_file(libjpeg.pc.in libjpeg.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libjpeg.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)

INSTALL(TARGETS jpeg)
IF(WIN32)
INSTALL(TARGETS jpeg
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib
)
ELSE(WIN32)
INSTALL(TARGETS jpeg
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
ENDIF(WIN32)

INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION include FILES_MATCHING PATTERN "*.h")

0 comments on commit f8fcb56

Please sign in to comment.