提交 bf74e8d6 编写于 作者: S slguan

Check if the current operating system is linux

上级 cffe2185
......@@ -15,8 +15,11 @@ SET(CMAKE_VERBOSE_MAKEFILE ON)
ADD_DEFINITIONS(-D_REENTRANT -D_M_X64 -D__USE_POSIX -D_LIBC_REENTRANT)
#set macro definitions according to os platform
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR UNIX)
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
ADD_DEFINITIONS(-DLINUX -D_LINUX)
ELSE ()
MESSAGE(FATAL_ERROR "The current system is not linux, stop compile")
EXIT ()
ENDIF ()
#set debug & release related options
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册