vcpkg/ports/pcl/fix-check-sse.patch
Jack·Boos·Yu 5a240bcf92
[pcl] check SSE flags (#13020)
* [pcl] Always check SSE flags

* check sse if sse enabled
2020-08-21 15:49:10 -07:00

14 lines
360 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e580b1a..572ea06 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -86,7 +86,7 @@ endif()
# check for SSE flags
include("${PCL_SOURCE_DIR}/cmake/pcl_find_sse.cmake")
-if(PCL_ENABLE_SSE AND "${CMAKE_CXX_FLAGS}" STREQUAL "${CMAKE_CXX_FLAGS_DEFAULT}")
+if(PCL_ENABLE_SSE)
PCL_CHECK_FOR_SSE()
endif()