mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 16:09:01 +08:00
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 9732bcb..5af9ac2 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -66,6 +66,8 @@ set(WITH_ENDIANAWARE FALSE CACHE BOOL "Choose whether or not libLAS should do ru
|
||
|
###############################################################################
|
||
|
# CMake settings
|
||
|
|
||
|
+set(CMAKE_CXX_STANDARD 11) # Boost v1.84.0 libraries require C++11
|
||
|
+
|
||
|
set(CMAKE_COLOR_MAKEFILE ON)
|
||
|
|
||
|
# Allow advanced users to generate Makefiles printing detailed commands
|
||
|
@@ -149,12 +151,7 @@ else()
|
||
|
" -Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -Wpointer-arith -Wcast-align -Wcast-qual -Wfloat-equal -Wredundant-decls -Wno-long-long")
|
||
|
|
||
|
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||
|
-
|
||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBLAS_COMMON_CXX_FLAGS}")
|
||
|
- if (CMAKE_COMPILER_IS_GNUCXX)
|
||
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98 -ansi")
|
||
|
- endif()
|
||
|
-
|
||
|
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER}" MATCHES "clang")
|
||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBLAS_COMMON_CXX_FLAGS}")
|
||
|
endif()
|
||
|
|