diff --git a/CMakeLists.txt b/CMakeLists.txt
index f678b0a4a6ea6f92e288d34aae6407b9966f0bc0..c9df3a80847aac400ebca7725a98c3815a8cc889 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,7 +37,6 @@ set(HAVE_OPENCV TRUE)
 
 if (PCL_FOUND)
 	set(HAVE_PCL TRUE)
-	string(REPLACE "\" \"" "" PCL_DEFINITIONS ${PCL_DEFINITIONS})
 endif()
 
 # Readline library is not required on Windows
diff --git a/renderer/cpp/CMakeLists.txt b/renderer/cpp/CMakeLists.txt
index d5a13f4aae227324680c84e0869f66f36b42a5b3..6453c92a60f2931febe2bb433ad167df74928911 100644
--- a/renderer/cpp/CMakeLists.txt
+++ b/renderer/cpp/CMakeLists.txt
@@ -2,7 +2,8 @@ add_library(ftlrender
 	src/display.cpp
 )
 
-target_compile_options(ftlrender PUBLIC ${PCL_DEFINITIONS})
+# These cause errors in CI build and are being removed from PCL in newer versions
+# target_compile_options(ftlrender PUBLIC ${PCL_DEFINITIONS})
 
 target_include_directories(ftlrender PUBLIC
 	${PCL_INCLUDE_DIRS}