Jiale/test2_ort/cmake/lite.ai.toolkit-platform.cmake

14 lines
349 B
CMake
Raw Normal View History

2024-05-15 18:06:07 +08:00
message(STATUS "Checking Build Platform for: ${CMAKE_CURRENT_SOURCE_DIR}")
if(WIN32)
set(PLATFORM_NAME windows)
elseif(APPLE)
set(PLATFORM_NAME macos)
elseif(UNIX AND NOT APPLE)
set(PLATFORM_NAME linux)
else()
message(FATAL_ERROR "Not support for ${CMAKE_SYSTEM_NAME} now!")
endif()
message(STATUS "Checking Build Platform Done!")