
For now, compiler extensions are no longer activated on CMake sources. However these extensions are still used for various third parties. This MR is a partial answer to the issue #20454.
15 lines
357 B
CMake
15 lines
357 B
CMake
|
|
# To ensure maximum portability across various compilers and platforms
|
|
# deactivate any compiler extensions
|
|
set(CMAKE_CXX_EXTENSIONS FALSE)
|
|
|
|
# source files for CMake std library
|
|
set(SRCS cm/bits/string_view.cxx
|
|
cm/memory
|
|
cm/optional
|
|
cm/shared_mutex
|
|
cm/string_view
|
|
cm/utility)
|
|
|
|
add_library(cmstd STATIC ${SRCS})
|