aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver
diff options
context:
space:
mode:
authorclick <none@none>2010-06-30 18:46:55 +0200
committerclick <none@none>2010-06-30 18:46:55 +0200
commit0a5a30a59229e46ace9fef1b7d5173dc5dae5333 (patch)
tree90e28a58eb8205a98f8839a27f8d06824c335f00 /src/server/authserver
parentd12b6fa6dd798d329455411eae882558504a02d9 (diff)
Minor cleanups to accomodate CMake-usage on Windows
--HG-- branch : trunk
Diffstat (limited to 'src/server/authserver')
-rw-r--r--src/server/authserver/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/server/authserver/CMakeLists.txt b/src/server/authserver/CMakeLists.txt
index e97bcfbea88..82b36c8ab3e 100644
--- a/src/server/authserver/CMakeLists.txt
+++ b/src/server/authserver/CMakeLists.txt
@@ -44,19 +44,21 @@ add_executable(authserver
add_dependencies(authserver revision.h)
-if(NOT WIN32)
+if( NOT WIN32 )
add_definitions(-D_TRINITY_REALM_CONFIG='"${CONF_DIR}/authserver.conf"')
endif()
-set(authserver_LINK_FLAGS "-pthread ${authserver_LINK_FLAGS}")
+if( UNIX )
+ set(authserver_LINK_FLAGS "-pthread ${authserver_LINK_FLAGS}")
+endif()
-if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
set(authserver_LINK_FLAGS "-framework Carbon ${authserver_LINK_FLAGS}")
endif()
set_target_properties(authserver PROPERTIES LINK_FLAGS "${authserver_LINK_FLAGS}")
-if(WIN32)
+if( WIN32 )
target_link_libraries(
authserver
shared