BuildLibiconv.cmake 504 B

12345678910111213
  1. if(MSVC)
  2. get_externalproject_options(libiconv ${DEPS_IGNORE_SHA})
  3. ExternalProject_Add(libiconv
  4. DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/libiconv
  5. PATCH_COMMAND ${CMAKE_COMMAND} -E copy
  6. ${CMAKE_CURRENT_SOURCE_DIR}/cmake/LibiconvCMakeLists.txt
  7. ${DEPS_BUILD_DIR}/src/libiconv/CMakeLists.txt
  8. CMAKE_ARGS ${DEPS_CMAKE_ARGS}
  9. ${EXTERNALPROJECT_OPTIONS})
  10. else()
  11. message(FATAL_ERROR "Trying to build libiconv in an unsupported system ${CMAKE_SYSTEM_NAME}/${CMAKE_C_COMPILER_ID}")
  12. endif()