forked from nfrechette/acl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding cmake platform defines and detection.
Removed acl_compressor from android build for now.
- Loading branch information
1 parent
8a5dad5
commit 52f41a0
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.2) | ||
|
||
# Detect which platform we have | ||
if( ${CMAKE_SYSTEM_NAME} STREQUAL "Windows" ) | ||
set(PLATFORM_WINDOWS 1) | ||
set(PLATFORM_NAME "Windows") | ||
elseif( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" ) | ||
set(PLATFORM_OSX 1) | ||
set(PLATFORM_NAME "OS X") | ||
elseif( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" ) | ||
set(PLATFORM_LINUX 1) | ||
set(PLATFORM_NAME "Linux") | ||
elseif( ${CMAKE_SYSTEM_NAME} STREQUAL "Android" ) | ||
set(PLATFORM_ANDROID 1) | ||
set(PLATFORM_NAME "Android") | ||
else() | ||
message(FATAL_ERROR "Unknown platform ${CMAKE_SYSTEM_NAME}!") | ||
endif() | ||
|
||
message(STATUS "Detected platform: ${PLATFORM_NAME}") |