We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb3dc9 commit d88b5eeCopy full SHA for d88b5ee
cmake_modules/BuildUtils.cmake
@@ -215,9 +215,10 @@ function(add_iceberg_lib LIB_NAME)
215
string(TOUPPER ${LIB_NAME} LIB_NAME_UPPER)
216
if(BUILD_SHARED)
217
generate_export_header(${LIB_NAME}_shared BASE_NAME ${LIB_NAME_UPPER})
218
+ target_compile_definitions(${LIB_NAME}_shared PRIVATE ${LIB_NAME}_EXPORTS)
219
if(BUILD_STATIC)
- set_target_properties(${LIB_NAME}_static
220
- PROPERTIES COMPILE_FLAGS -D${LIB_NAME_UPPER}_STATIC_DEFINE)
+ target_compile_definitions(${LIB_NAME}_static
221
+ PRIVATE ${LIB_NAME_UPPER}_STATIC_DEFINE)
222
endif()
223
elseif(BUILD_STATIC)
224
generate_export_header(${LIB_NAME}_static BASE_NAME ${LIB_NAME_UPPER})
0 commit comments