2019-03-08 06:29:53 +03:00
|
|
|
# Copyright (c) 2016-present, Facebook, Inc.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This source code is licensed under the BSD-style license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
# of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
|
2019-01-17 01:19:47 +03:00
|
|
|
set(CMAKE_CXX_FLAGS_COMMON "-g -Wall -Wextra -Wno-deprecated -Wno-deprecated-declarations")
|
2019-05-01 20:11:26 +03:00
|
|
|
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")
|
2018-05-01 00:28:44 +03:00
|
|
|
|
|
|
|
function(apply_eden_compile_options_to_target THETARGET)
|
|
|
|
target_compile_options(${THETARGET}
|
|
|
|
PUBLIC
|
|
|
|
-g
|
|
|
|
-finput-charset=UTF-8
|
|
|
|
-fsigned-char
|
|
|
|
-Werror
|
|
|
|
-Wall
|
|
|
|
-Wno-deprecated
|
2019-01-17 01:19:47 +03:00
|
|
|
-Wno-deprecated-declarations
|
2018-05-01 00:28:44 +03:00
|
|
|
-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()
|