vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO llnl/conduit REF v0.9.5 SHA512 c0b8e92e6eb3c42a2efc8656c488b62c2fbacbe015df7820d8eae8752deea8271db65f2d129df251a7eb97402352ff2260e3ac8e38a3c37c8606ab1096511757 HEAD_REF develop PATCHES "./setup_deps_vcpkg_triplet.patch" ) set(_is_shared TRUE) if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") set(_is_shared FALSE) endif() vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH}/src PREFER_NINJA OPTIONS -DBLT_SOURCE_DIR=${CURRENT_INSTALLED_DIR}/share/blt -DCONDUIT_ENABLE_TESTS=OFF -DENABLE_COVERAGE=OFF -DENABLE_DOCS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_PYTHON=OFF -DENABLE_TESTS=OFF -DENABLE_UTILS=OFF -DBUILD_SHARED_LIBS=${_is_shared} -DHDF5_DIR=${CURRENT_INSTALLED_DIR} -DCONDUIT_INSTALL_CONFIG_DIR="share/conduit" -DCONDUIT_INSTALL_CMAKE_MODULE_DIR="share" ) vcpkg_install_cmake() vcpkg_cmake_config_fixup( CONFIG_PATH lib/cmake/conduit TOOLS_PATH tools/conduit) vcpkg_copy_pdbs() ## shuffle the output directories to make vcpkg happy # Remove extraneous debug header files file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) # Remove exe files -- vcpkg doesn't like them # (Future): It might be possible to move them to the vcpkg 'tools' directory foreach(_dir "bin" "debug/bin") file(GLOB _exe ${CURRENT_PACKAGES_DIR}/${_dir}/*.exe) if(_exe) file(REMOVE ${_exe}) endif() endforeach() if(VCPKG_LIBRARY_LINKAGE STREQUAL static) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) endif() # Move/shuffle cmake files to 'share' directory #file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/conduit ) #file(COPY ${CURRENT_PACKAGES_DIR}/lib/cmake/ # DESTINATION ${CURRENT_PACKAGES_DIR}/share/conduit/ ) #file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/cmake/conduit-debug.cmake # ${CURRENT_PACKAGES_DIR}/share/conduit/) #file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake) #file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake) # TODO: Fixup cmake files or config files? # Put the license file where vcpkg expects it file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/conduit RENAME copyright)