Skip to content

Commit a80066d

Browse files
committed
wgtmac feedback
1 parent f580dbe commit a80066d

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ set(ICEBERG_INSTALL_LIBDIR "${CMAKE_INSTALL_LIBDIR}")
5252
set(ICEBERG_INSTALL_BINDIR "${CMAKE_INSTALL_BINDIR}")
5353
set(ICEBERG_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}")
5454
set(ICEBERG_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake")
55-
set(ICEBERG_INSTALL_DOCDIR "share/doc/Iceberg")
55+
set(ICEBERG_INSTALL_DOCDIR "share/doc/iceberg")
5656

5757
if(WIN32 AND NOT MINGW)
5858
set(MSVC_TOOLCHAIN TRUE)

cmake_modules/IcebergBuildUtils.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
include(CMakePackageConfigHelpers)
2222

2323
function(iceberg_install_cmake_package PACKAGE_NAME EXPORT_NAME)
24-
set(CONFIG_CMAKE "${PACKAGE_NAME}Config.cmake")
24+
set(CONFIG_CMAKE "${PACKAGE_NAME}-config.cmake")
2525
set(BUILT_CONFIG_CMAKE "${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_CMAKE}")
2626
configure_package_config_file("${CONFIG_CMAKE}.in" "${BUILT_CONFIG_CMAKE}"
2727
INSTALL_DESTINATION "${ICEBERG_INSTALL_CMAKEDIR}/${PACKAGE_NAME}"
2828
)
29-
set(CONFIG_VERSION_CMAKE "${PACKAGE_NAME}ConfigVersion.cmake")
29+
set(CONFIG_VERSION_CMAKE "${PACKAGE_NAME}config-version.cmake")
3030
set(BUILT_CONFIG_VERSION_CMAKE "${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_VERSION_CMAKE}")
3131
write_basic_package_version_file("${BUILT_CONFIG_VERSION_CMAKE}"
3232
COMPATIBILITY SameMajorVersion)
3333
install(FILES "${BUILT_CONFIG_CMAKE}" "${BUILT_CONFIG_VERSION_CMAKE}"
3434
DESTINATION "${ICEBERG_INSTALL_CMAKEDIR}/${PACKAGE_NAME}")
35-
set(TARGETS_CMAKE "${PACKAGE_NAME}Targets.cmake")
35+
set(TARGETS_CMAKE "${PACKAGE_NAME}-targets.cmake")
3636
install(EXPORT ${EXPORT_NAME}
3737
DESTINATION "${ICEBERG_INSTALL_CMAKEDIR}/${PACKAGE_NAME}"
3838
NAMESPACE "${PACKAGE_NAME}::"
@@ -213,6 +213,7 @@ function(add_iceberg_lib LIB_NAME)
213213

214214
string(TOUPPER ${LIB_NAME} VISIBILITY_NAME)
215215
target_compile_definitions(${LIB_NAME}_static PUBLIC ${VISIBILITY_NAME}_STATIC)
216+
216217
install(TARGETS ${LIB_NAME}_static
217218
EXPORT iceberg_targets
218219
ARCHIVE DESTINATION ${INSTALL_ARCHIVE_DIR}

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ subdir('src')
3434

3535
install_data(
3636
['LICENSE', 'NOTICE'],
37-
install_dir: get_option('datadir') / 'doc/Iceberg',
37+
install_dir: get_option('datadir') / 'doc/iceberg',
3838
)

meson.options

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
# Many of the options that CMake provides do not need to be implemented
19+
# in this configuration, as Meson offers built-in support for them.
20+
# For instance, instead of ICEBERG_BUILD_STATIC and ICEBERG_BUILD_SHARED
21+
# you can pass the `--default_library=<option>` to the meson setup command,
22+
# where <option> is one of "shared", "static", or "both"
23+
#
24+
# ICEBERG_ENABLE_ASAN / ICEBERG_ENABLE_UBSAN can be specified with
25+
# the -Db_sanitize=address,undefined option. Starting in Meson 1.8,
26+
# you can provide any array of sanitizers to that same argument,
27+
# including for example the "fuzzing" option
28+
#
29+
# ICEBERG_INSTALL_LIBDIR / ICEBERG_INSTALL_BINDIR / ICEBERG_INSTALL_INCLUDEDIR
30+
# and ICEBERG_INSTALL_DOCDIR correspond to Meson's --libdir / --bindir /
31+
# --includedir / --datadir arguments, respectively
32+
1833
option(
1934
'rest',
2035
type: 'feature',

src/iceberg/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,6 @@ add_iceberg_lib(iceberg
110110
OUTPUTS
111111
ICEBERG_LIBRARIES)
112112

113-
foreach(LIB_TARGET ${ICEBERG_LIBRARIES})
114-
target_compile_definitions(${LIB_TARGET} PRIVATE ICEBERG_EXPORTING)
115-
endforeach()
116-
117-
if(ICEBERG_BUILD_STATIC)
118-
target_compile_definitions(iceberg_static PUBLIC ICEBERG_STATIC)
119-
endif()
120-
121113
iceberg_install_all_headers(iceberg)
122114

123115
add_subdirectory(catalog)

src/iceberg/icebergConfig.cmake.in renamed to src/iceberg/iceberg-config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ if(NOT TARGET CURL::libcurl)
8585
add_library(CURL::libcurl INTERFACE IMPORTED)
8686
endif()
8787

88-
include("${CMAKE_CURRENT_LIST_DIR}/icebergTargets.cmake")
88+
include("${CMAKE_CURRENT_LIST_DIR}/iceberg-targets.cmake")
8989

9090
if(TARGET iceberg::arrow_static)
9191
add_library(Arrow::arrow_static ALIAS iceberg::arrow_static)

0 commit comments

Comments
 (0)