mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
30 lines
973 B
Diff
30 lines
973 B
Diff
if any cxxflags are set it skips all the checks
|
|
--
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 51879ed..b918570 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -101,7 +101,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()
|
|
|
|
@@ -113,14 +113,12 @@ endif()
|
|
|
|
# ---[ Unix/Darwin/Windows specific flags
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
- if("${CMAKE_CXX_FLAGS}" STREQUAL "${CMAKE_CXX_FLAGS_DEFAULT}")
|
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7)
|
|
string(APPEND CMAKE_CXX_FLAGS " -Wabi=11")
|
|
else()
|
|
string(APPEND CMAKE_CXX_FLAGS " -Wabi")
|
|
endif()
|
|
string(APPEND CMAKE_CXX_FLAGS " -Wall -Wextra -fno-strict-aliasing ${SSE_FLAGS} ${AVX_FLAGS}")
|
|
- endif()
|
|
|
|
if(PCL_WARNINGS_ARE_ERRORS)
|
|
string(APPEND CMAKE_CXX_FLAGS " -Werror -fno-strict-aliasing")
|