diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-10 11:08:43 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-10 11:08:43 +0300 |
commit | d32759b7eb812b4a4033cc61e1e98245544b4992 (patch) | |
tree | 22bbb3e9b46c1b55818aaf475f699ae187ce328b /cmake | |
parent | 471e9b902d01b70b2d12146772e30528a216ee82 (diff) | |
download | ydb-d32759b7eb812b4a4033cc61e1e98245544b4992.tar.gz |
intermediate changes
ref:7e819949a28b77d60c98019ed1950733e734a77e
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/global_vars.cmake | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/cmake/global_vars.cmake b/cmake/global_vars.cmake index a911d464ec..a249932e8c 100644 --- a/cmake/global_vars.cmake +++ b/cmake/global_vars.cmake @@ -6,7 +6,17 @@ # original buildsystem will not be accepted. -set(COMMON_PROTOC_FLAGS -I=${CMAKE_SOURCE_DIR} -I=${CMAKE_BINARY_DIR}) -set(YASM_FLAGS -f elf64 -D UNIX -D _x86_64_ -D_YASM_ -g dwarf2) -set(BISON_FLAGS -v) -set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/) +if(UNIX) + set(COMMON_PROTOC_FLAGS -I=${CMAKE_SOURCE_DIR} -I=${CMAKE_BINARY_DIR}) + set(YASM_FLAGS -f elf64 -D UNIX -D _x86_64_ -D_YASM_ -g dwarf2) + set(BISON_FLAGS -v) + set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/) +endif() + +if(APPLE) + set(COMMON_PROTOC_FLAGS -I=${CMAKE_SOURCE_DIR} -I=${CMAKE_BINARY_DIR}) + set(YASM_FLAGS -f macho64 -D DARWIN -D UNIX -D _x86_64_ -D_YASM_) + set(BISON_FLAGS -v) + set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/) +endif() + |