Skip to content

Commit 9d5b890

Browse files
committed
Do not try to compile osmium/geom/projection.hpp without proj lib
1 parent c95404d commit 9d5b890

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ if(BUILD_HEADERS)
401401
file(MAKE_DIRECTORY header_check)
402402

403403
foreach(hpp ${ALL_HPPS})
404-
if(GDAL_FOUND OR NOT ((hpp STREQUAL "osmium/area/problem_reporter_ogr.hpp") OR (hpp STREQUAL "osmium/geom/ogr.hpp")))
404+
if((GDAL_FOUND AND PROJ_FOUND) OR NOT ((hpp STREQUAL "osmium/area/problem_reporter_ogr.hpp") OR (hpp STREQUAL "osmium/geom/ogr.hpp") OR (hpp STREQUAL "osmium/geom/projection.hpp")))
405405
string(REPLACE ".hpp" "" tmp ${hpp})
406406
string(REPLACE "/" "__" libname ${tmp})
407407

0 commit comments

Comments
 (0)