-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Oracle: fix CMake support and fix compiler warnings (#4812)
* CMake: fix OCI support * GeoRaster: fix compiler warnings with MSVC
- Loading branch information
Showing
9 changed files
with
55 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
add_gdal_driver( | ||
TARGET gdal_GEOR | ||
SOURCES georaster_dataset.cpp georaster_priv.h georaster_rasterband.cpp georaster_wrapper.cpp | ||
SOURCES georaster_dataset.cpp georaster_priv.h georaster_rasterband.cpp georaster_wrapper.cpp oci_wrapper.cpp | ||
cpl_vsil_ocilob.cpp | ||
DEF FRMT_georaster PLUGIN_CAPABLE_IF "NOT GDAL_USE_LIBZ_INTERNAL;NOT GDAL_USE_LIBJPEG_INTERNAL") | ||
gdal_standard_includes(gdal_GEOR) | ||
if (GDAL_USE_LIBZ_INTERNAL) | ||
target_include_directories(gdal_GEOR PRIVATE $<TARGET_PROPERTY:libz,SOURCE_DIR>) | ||
endif () | ||
if (HAVE_OCI) | ||
target_include_directories(gdal_GEOR PRIVATE ${OCI_INCLUDE_DIR}) | ||
gdal_target_link_libraries(gdal_GEOR PRIVATE ${OCI_LIBRARY}) | ||
endif () | ||
|
||
if (GDAL_USE_LIBJPEG_INTERNAL) | ||
target_include_directories(gdal_GEOR PRIVATE $<TARGET_PROPERTY:libjpeg,SOURCE_DIR>) | ||
target_compile_definitions(gdal_GEOR PRIVATE -DJPEG_SUPPORTED) | ||
else () | ||
endif () | ||
|
||
gdal_target_link_libraries(TARGET gdal_GEOR LIBRARIES Oracle::OCI) | ||
|
||
if (NOT GDAL_USE_LIBJPEG_INTERNAL) | ||
if (HAVE_JPEG) | ||
target_include_directories(gdal_GEOR PRIVATE ${JPEG_INCLUDE_DIRS}) | ||
target_compile_definitions(gdal_GEOR PRIVATE -DJPEG_SUPPORTED) | ||
gdal_target_link_libraries(TARGET gdal_GEOR LIBRARIES JPEG::JPEG) | ||
endif () | ||
endif () | ||
|
||
if (NOT GDAL_USE_LIBJPEG_INTERNAL) | ||
gdal_target_link_libraries(TARGET gdal_GEOR LIBRARIES ZLIB::ZLIB) | ||
endif () | ||
|
||
if (GDAL_ENABLE_FRMT_GEOR_PLUGIN) | ||
# A bit ugly to add this file from the JPEG driver ! | ||
target_sources(gdal_GEOR PRIVATE ../jpeg/vsidataio.cpp) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters