try_run(GDAL_HAS_J2K_KAK COMPILE_RESULT_FORMATS ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_SOURCE_DIR}/Modules/ThirdParty/GDAL/gdalFormatsTest.cxx CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:PATH=${GDAL_INCLUDE_DIR}""-DLINK_LIBRARIES:STRING=${GDAL_LIBRARY}" ARGS JP2KAK )# No need to output ${TEMP}/gdalFormats.txt everytime
message(WARNING "Modules/ThirdParty/GDAL/gdalTest2.cxx did not compile.")
elseif(${RUN_RESULT_VAR2} EQUAL 1)
message(WARNING "Internal versions of libtiff/libgeotiff detected without symbol renaming (when configuring GDAL, if options --with-libtiff or --with-geotiff are set to 'internal', then options --with-rename-internal-libtiff-symbols and --with-rename-internal-libgeotiff-symbols should be set to 'yes').")
set(GDAL_QUALIFIES FALSE)
endif()
if(NOT COMPILE_RESULT_VAR3)
message(WARNING "Modules/ThirdParty/GDAL/gdalTest3.cxx did not compile.")
endif()
if(NOT COMPILE_RESULT_VAR4)
message(WARNING "Modules/ThirdParty/GDAL/gdalTest4.cxx did not compile.")
endif()
if(${RUN_RESULT_VAR2} EQUAL 1)
message(WARNING "Internal versions of libtiff/libgeotiff detected without symbol renaming (when configuring GDAL, if options --with-libtiff or --with-geotiff are set to 'internal', then options --with-rename-internal-libtiff-symbols and --with-rename-internal-libgeotiff-symbols should be set to 'yes').")
endif()
if(${RUN_RESULT_VAR3} EQUAL 1)
elseif(${RUN_RESULT_VAR3} EQUAL 1)
message(WARNING "No BIGTIFF capatilities.")
set(GDAL_QUALIFIES FALSE)
endif()
if(NOT GDAL_HAS_HDF)
message(WARNING "No HDF capatilities.")
endif()
if(NOT GDAL_HAS_J2K_JG2000 AND NOT GDAL_HAS_J2K_OPJG AND NOT GDAL_HAS_J2K_KAK AND NOT GDAL_HAS_J2K_ECW)
message(WARNING "No Jpeg2000 driver found (compatible drivers are : OpenJpeg, Kakadu, ECW).")