Skip to content
Snippets Groups Projects
Commit 12332fb4 authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Moved definition GEOTIFF_FOUND.

parent 2534fb4e
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,7 @@ target_link_libraries(QtDataView
Qt5::Gui)
if(GEOTIFF_FOUND)
target_compile_definitions(QtDataView PRIVATE GEOTIFF_FOUND)
target_link_libraries(QtDataView PRIVATE ${GEOTIFF_LIBRARIES})
endif() # GEOTIFF_FOUND
......
......@@ -131,6 +131,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
ogs_add_library(VtkVis STATIC ${SOURCES} ${HEADERS} ${UIS})
if(GEOTIFF_FOUND)
target_compile_definitions(VtkVis PRIVATE GEOTIFF_FOUND)
include_directories(${GEOTIFF_INCLUDE_DIRS})
target_link_libraries(VtkVis PUBLIC ${GEOTIFF_LIBRARIES})
endif() # GEOTIFF_FOUND
......
......@@ -133,9 +133,6 @@ find_package(LAPACK QUIET)
## geotiff ##
find_package(LibGeoTiff)
if(GEOTIFF_FOUND)
add_definitions(-DGEOTIFF_FOUND)
endif() # GEOTIFF_FOUND
## lis ##
if(OGS_USE_LIS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment