summaryrefslogtreecommitdiff
path: root/net/astron/files/patch-CMakeLists.txt
blob: 470448dfcac5e87611c4c548ae19f787198bd0f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- CMakeLists.txt.orig	2020-05-21 16:39:19 UTC
+++ CMakeLists.txt
@@ -75,7 +75,7 @@ endif()
 # Common flags:
 if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
    CMAKE_CXX_COMPILER_ID MATCHES "GNU")
-	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -Wno-error=deprecated-declarations")
+	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-error=deprecated-declarations")
 endif()
 
 # Clang-specific flags:
@@ -92,7 +92,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")	### Windows
 	list(APPEND EXTRA_LIBS wsock32 ws2_32)
 endif()
 
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")		### Linux requires pthreads
+if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")		### Linux requires pthreads
 	list(APPEND EXTRA_LIBS pthread rt)
 endif()