BUG: fix test

Alex
This commit is contained in:
Alexander Neundorf 2007-07-06 14:02:42 -04:00
parent 919988b7b4
commit 03ea7bf2e1
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ set(SRCS)
# if no file has been set as source and we are on linux with an x86 processor try to use the gas/as assembler
# main-linux-x86-gas.s seems to work for Linux and FreeBSD
if(NOT SRCS AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
if(CMAKE_SYSTEM MATCHES Linux or CMAKE_SYSTEM MATCHES FreeBSD)
if(CMAKE_SYSTEM MATCHES Linux OR CMAKE_SYSTEM MATCHES FreeBSD)
message(STATUS "Trying to enable ASM-ATT for Linux or FreeBSD on x86")
enable_language(ASM-ATT OPTIONAL)
if(CMAKE_ASM-ATT_COMPILER_WORKS)
@ -13,7 +13,7 @@ if(NOT SRCS AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
# this assembler file was created using gcc -S main.c
set(SRCS main-linux-x86-gas.s)
endif(CMAKE_ASM-ATT_COMPILER_WORKS)
endif(CMAKE_SYSTEM MATCHES Linux or CMAKE_SYSTEM MATCHES FreeBSD)
endif(CMAKE_SYSTEM MATCHES Linux OR CMAKE_SYSTEM MATCHES FreeBSD)
endif(NOT SRCS AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
if(NOT SRCS)