From d8f086868cf643a9b4a01f1d1ce6e42d10c8a91e Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Sat, 2 Jan 2010 02:29:41 +0100 Subject: [PATCH] Cmake: lpthread in LDFLAGS instead of CFLAGS xorg smoke too much, normally this is wonderful for the code. Not this time :-) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 21345e8..9f74af6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,12 +54,12 @@ add_executable(wmfs ${wmfs_src}) set(VERSION "WMFS-201001") # FLAGS -set(CFLAGS "-g -Wall -lpthread -ansi") +set(CFLAGS "-g -Wall -ansi") set(CMAKE_C_FLAGS ${CFLAGS}) # Linker FLAGS -set(DEFAULT_LDFLAGS "-L /usr/local/lib") +set(DEFAULT_LDFLAGS "-L /usr/local/lib -lpthread") if(CMAKE_SYSTEM_NAME MATCHES NetBSD) message("-- NetBSD system found - Using /usr/pkg/lib for linker")