Skip to content

Commit

Permalink
lib_proj.cmake: add a dependency to proj.db in the C23 code path
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Dec 17, 2024
1 parent e7ef01b commit 33e7206
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib_proj.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ if (EMBED_RESOURCE_FILES AND NOT IS_SHARP_EMBED_AVAILABLE_RES)
target_sources(proj PRIVATE embedded_resources.c "${EMBEDDED_PROJ_DB}" "${EMBEDDED_PROJ_INI}")
elseif(EMBED_RESOURCE_FILES AND IS_SHARP_EMBED_AVAILABLE_RES)
add_library(proj_resources OBJECT embedded_resources.c)
set_source_files_properties(embedded_resources.c OBJECT_DEPENDS ${PROJECT_BINARY_DIR}/data/proj.db)
target_compile_definitions(proj_resources PRIVATE "PROJ_DB=\"${PROJECT_BINARY_DIR}/data/proj.db\"")
target_compile_definitions(proj_resources PRIVATE "PROJ_INI=\"${PROJECT_SOURCE_DIR}/data/proj.ini\"")
target_compile_definitions(proj_resources PRIVATE USE_SHARP_EMBED)
Expand Down

0 comments on commit 33e7206

Please sign in to comment.