|
From: Lasse Kärkkäi. <tr...@us...> - 2011-03-13 00:49:24
|
Author: Lasse Karkkainen <tro...@tr...>
Date: Sun Feb 27 00:39:30 2011 +0100
Build fix
---
game/CMakeLists.txt | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/game/CMakeLists.txt b/game/CMakeLists.txt
index 3a34f6b..0482c8e 100644
--- a/game/CMakeLists.txt
+++ b/game/CMakeLists.txt
@@ -123,8 +123,9 @@ if(APPLE)
endif(APPLE)
if(UNIX)
- list(APPEND CMAKE_CXX_FLAGS -pthread)
- list(APPEND CMAKE_EXE_LINKER_FLAGS -pthread)
+ # Note: cannot use list APPEND here because it inserts semicolons instead of spaces
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
endif(UNIX)
if(MSVC)
|