ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
-EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
-IF("${ARCH}" MATCHES "^arm.*")
+#EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
+SET(ARCH "${ARCHITECTURE}")
+IF("${ARCH}" MATCHES "^arm.*|.*86.*")
SET(SRCS
src/wifi-direct-plugin.c
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2")
-FIND_PROGRAM(UNAME NAMES uname)
-EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
+#FIND_PROGRAM(UNAME NAMES uname)
+#EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
+SET(ARCH "${ARCHITECTURE}")
IF("${ARCH}" STREQUAL "arm")
ADD_DEFINITIONS("-DTARGET")
MESSAGE("add -DTARGET")
#SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
-EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
-IF("${ARCH}" MATCHES "^arm.*")
+#EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
+message("${ARCH}")
+IF("${ARCH}" MATCHES "^arm.*|.*86.*")
SET(SRCS
wifi-direct-main.c
wifi-direct-utils.c