mirror of
https://github.com/facebook/sapling.git
synced 2025-01-01 01:25:49 +03:00
4bc8682391
Summary: Update the copyright & license headers in CMake files to reflect the relicensing to GPLv2 Reviewed By: wez Differential Revision: D15487079 fbshipit-source-id: 715e559464c19a0070d6e55a095b3fc7d61ad2f8
32 lines
920 B
CMake
32 lines
920 B
CMake
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2.
|
|
|
|
set(CMAKE_CXX_FLAGS_COMMON "-g -Wall -Wextra -Wno-deprecated -Wno-deprecated-declarations")
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${CMAKE_CXX_FLAGS_COMMON}")
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS_COMMON} -O3")
|
|
|
|
function(apply_eden_compile_options_to_target THETARGET)
|
|
target_compile_options(${THETARGET}
|
|
PUBLIC
|
|
-g
|
|
-finput-charset=UTF-8
|
|
-fsigned-char
|
|
-Werror
|
|
-Wall
|
|
-Wno-deprecated
|
|
-Wno-deprecated-declarations
|
|
-Wno-error=deprecated-declarations
|
|
-Wno-sign-compare
|
|
-Wno-unused
|
|
-Wunused-label
|
|
-Wunused-result
|
|
-Wnon-virtual-dtor
|
|
${FOLLY_CXX_FLAGS}
|
|
PRIVATE
|
|
-D_REENTRANT
|
|
-D_GNU_SOURCE
|
|
)
|
|
endfunction()
|