Refactors folly sync test cases
[folly.git] / CMake / FollyCompilerUnix.cmake
1 set(CMAKE_CXX_FLAGS_COMMON -g -Wall -Wextra)
2 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_COMMON}")
3 set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_COMMON} -O3")
4
5 function(apply_folly_compile_options_to_target THETARGET)
6   target_compile_options(${THETARGET}
7     PUBLIC
8       -g
9       -std=gnu++14
10       -fopenmp
11       -finput-charset=UTF-8
12       -fsigned-char
13       -faligned-new
14       -Werror
15       -Wall
16       -Wno-deprecated
17       -Wdeprecated-declarations
18       -Wno-error=deprecated-declarations
19       -Wno-sign-compare
20       -Wno-unused
21       -Wunused-label
22       -Wunused-result
23       -Wnon-virtual-dtor
24       -Wno-noexcept-type
25     PRIVATE
26       -D_REENTRANT
27       -D_GNU_SOURCE
28   )
29 endfunction()