Cmake: lpthread in LDFLAGS instead of CFLAGS

xorg smoke too much, normally this is wonderful for the
code. Not this time :-)
This commit is contained in:
Philippe Pepiot 2010-01-02 02:29:41 +01:00
parent b49744289c
commit d8f086868c

View File

@ -54,12 +54,12 @@ add_executable(wmfs ${wmfs_src})
set(VERSION "WMFS-201001") set(VERSION "WMFS-201001")
# FLAGS # FLAGS
set(CFLAGS "-g -Wall -lpthread -ansi") set(CFLAGS "-g -Wall -ansi")
set(CMAKE_C_FLAGS ${CFLAGS}) set(CMAKE_C_FLAGS ${CFLAGS})
# Linker FLAGS # Linker FLAGS
set(DEFAULT_LDFLAGS "-L /usr/local/lib") set(DEFAULT_LDFLAGS "-L /usr/local/lib -lpthread")
if(CMAKE_SYSTEM_NAME MATCHES NetBSD) if(CMAKE_SYSTEM_NAME MATCHES NetBSD)
message("-- NetBSD system found - Using /usr/pkg/lib for linker") message("-- NetBSD system found - Using /usr/pkg/lib for linker")