mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-28 22:15:49 -04:00
Added definitions for linux builds
This commit is contained in:
+4
-1
@@ -1,7 +1,7 @@
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(swgnge)
|
||||
project(swgnge CXX)
|
||||
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
@@ -22,6 +22,9 @@ find_package(ZLIB REQUIRED)
|
||||
if(WIN32)
|
||||
find_package(Iconv REQUIRED)
|
||||
add_definitions(/D_CRT_SECURE_NO_WARNINGS /wd4244 /wd4996 /wd4018 /wd4351)
|
||||
elseif(UNIX)
|
||||
add_definitions(-DLINUX -D_REENTRANT -Dlinux -D_USING_STL -D__STL_NO_BAD_ALLOC -D_GNU_SOURCE)
|
||||
set(CMAKE_CXX_FLAGS "-Wno-write-strings ${CMAKE_CXX_FLAGS}")
|
||||
endif()
|
||||
|
||||
include_directories(${STLPORT_INCLUDE_DIR})
|
||||
|
||||
Reference in New Issue
Block a user