Index: geogram/src/lib/geogram/mesh/mesh_io.cpp
===================================================================
--- geogram.orig/src/lib/geogram/mesh/mesh_io.cpp
+++ geogram/src/lib/geogram/mesh/mesh_io.cpp
@@ -57,7 +57,7 @@ extern "C" {
 #include <libmeshb7.h>
 }
 
-#include <geogram/third_party/rply/rply.h>
+#include <rply.h>
 
 #ifdef GEO_COMPILER_GCC
 #include <cxxabi.h>
Index: geogram/src/lib/geogram/CMakeLists.txt
===================================================================
--- geogram.orig/src/lib/geogram/CMakeLists.txt
+++ geogram/src/lib/geogram/CMakeLists.txt
@@ -84,7 +84,7 @@ if(UNIX AND VORPALINE_BUILD_DYNAMIC)
 if (ANDROID)
 target_link_libraries(geogram dl)
 else()
-target_link_libraries(geogram pthread dl lua5.4 z triangle Meshb.7)
+target_link_libraries(geogram pthread dl lua5.4 z triangle Meshb.7 rply)
 endif()
 endif()
 
