Skip to content

Commit

Permalink
CMake: fix build if disabling only OpenFileGDB driver
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Oct 30, 2024
1 parent e4effaf commit e32a2fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ogr/ogrsf_frmts/filegdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ endif()

gdal_standard_includes(ogr_FileGDB)
target_include_directories(ogr_FileGDB PRIVATE $<TARGET_PROPERTY:ogrsf_generic,SOURCE_DIR>
$<TARGET_PROPERTY:ogr_OpenFileGDB,SOURCE_DIR>)
${GDAL_VECTOR_FORMAT_SOURCE_DIR}/openfilegdb)
gdal_target_link_libraries(ogr_FileGDB PRIVATE FILEGDB::FileGDB)
2 changes: 1 addition & 1 deletion ogr/ogrsf_frmts/pgeo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ add_gdal_driver(
ogrpgeoselectlayer.cpp
BUILTIN)
gdal_standard_includes(ogr_PGeo)
target_include_directories(ogr_PGeo PRIVATE $<TARGET_PROPERTY:ogr_OpenFileGDB,SOURCE_DIR>)
target_include_directories(ogr_PGeo PRIVATE ${GDAL_VECTOR_FORMAT_SOURCE_DIR}/openfilegdb)
gdal_target_link_libraries(ogr_PGeo PRIVATE ODBC::ODBC)

0 comments on commit e32a2fd

Please sign in to comment.