mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 13:59:06 +08:00
bf79851275
* PCL doesn't compile on linux with clang `-fext-numeric-literals` does not exist in clang and it builds just fine without it * pcl: bumped version
15 lines
454 B
Diff
15 lines
454 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index b301cf1..789b660 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -462,6 +462,9 @@ endif()
|
|
|
|
# Boost (required)
|
|
include("${PCL_SOURCE_DIR}/cmake/pcl_find_boost.cmake")
|
|
+if (NOT APPLE AND NOT WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
+ add_definitions(-fext-numeric-literals)
|
|
+endif()
|
|
|
|
### ---[ Create the config.h file
|
|
set(pcl_config_h_in "${CMAKE_CURRENT_SOURCE_DIR}/pcl_config.h.in")
|