diff options
author | Kamil Rytarowski <n54@gmx.com> | 2016-01-24 02:47:47 +0300 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2016-01-24 02:47:47 +0300 |
commit | e2d83425231d9954f2694636010be38e01cc6517 (patch) | |
tree | a62c39f0b6f9595fa75cd742ea4ff0a3327c6e19 /src/Native | |
parent | 4e78a53bf0ee5030b419a907d92fb798cc485c0a (diff) |
Sort options by OS in src/Native/CMakeLists.txt
Diffstat (limited to 'src/Native')
-rw-r--r-- | src/Native/CMakeLists.txt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt index 794055346..6f5c1e1a8 100644 --- a/src/Native/CMakeLists.txt +++ b/src/Native/CMakeLists.txt @@ -34,6 +34,17 @@ elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64) add_compile_options(-target aarch64-linux-gnu) endif () +if(CMAKE_SYSTEM_NAME STREQUAL Darwin) + set(CLR_CMAKE_PLATFORM_UNIX 1) + set(CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64 1) + set(CLR_CMAKE_PLATFORM_DARWIN 1) + if(CMAKE_VERSION VERSION_LESS "3.4.0") + set(CMAKE_ASM_COMPILE_OBJECT "${CMAKE_C_COMPILER} <FLAGS> <DEFINES> -o <OBJECT> -c <SOURCE>") + else() + set(CMAKE_ASM_COMPILE_OBJECT "${CMAKE_C_COMPILER} <FLAGS> <DEFINES> <INCLUDES> -o <OBJECT> -c <SOURCE>") + endif(CMAKE_VERSION VERSION_LESS "3.4.0") +endif(CMAKE_SYSTEM_NAME STREQUAL Darwin) + if(CMAKE_SYSTEM_NAME STREQUAL Linux) set(CLR_CMAKE_PLATFORM_UNIX 1) if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) @@ -48,17 +59,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux) set(CLR_CMAKE_PLATFORM_LINUX 1) endif(CMAKE_SYSTEM_NAME STREQUAL Linux) -if(CMAKE_SYSTEM_NAME STREQUAL Darwin) - set(CLR_CMAKE_PLATFORM_UNIX 1) - set(CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64 1) - set(CLR_CMAKE_PLATFORM_DARWIN 1) - if(CMAKE_VERSION VERSION_LESS "3.4.0") - set(CMAKE_ASM_COMPILE_OBJECT "${CMAKE_C_COMPILER} <FLAGS> <DEFINES> -o <OBJECT> -c <SOURCE>") - else() - set(CMAKE_ASM_COMPILE_OBJECT "${CMAKE_C_COMPILER} <FLAGS> <DEFINES> <INCLUDES> -o <OBJECT> -c <SOURCE>") - endif(CMAKE_VERSION VERSION_LESS "3.4.0") -endif(CMAKE_SYSTEM_NAME STREQUAL Darwin) - if (CLR_CMAKE_PLATFORM_UNIX) include_directories(inc/unix) |