fix:增加对当前系统类型的检测
1. 极点五笔需要在windows上和linux系统上正常运行.这两个系统在某些问题上存在不一致的情况,所以增加对当前系统类型的检测,以便针对不同的系统类型做差异化处理
This commit is contained in:
parent
7e89faaa42
commit
b19c842c23
|
@ -4,6 +4,17 @@
|
|||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
project(fcitx-freewubi)
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set(OS_TYPE "Linux")
|
||||
message(STATUS "Detected operating system is : ${OS_TYPE}")
|
||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
set(OS_TYPE "Windows")
|
||||
message(STATUS "Detected operating system is : ${OS_TYPE}")
|
||||
else()
|
||||
message(STATUS "Unknown operating system.")
|
||||
endif()
|
||||
|
||||
include(FindPkgConfig)
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
||||
find_package(Fcitx 4.2.7 REQUIRED)
|
||||
|
|
Loading…
Reference in New Issue