* CMake: added search for ws2_32 library. (tested with MinGW/MSYS)
* Added missing pcre library for MinGW. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14904 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
13a4063735
commit
d725299ad1
2
3rdparty/msinttypes/CMakeLists.txt
vendored
2
3rdparty/msinttypes/CMakeLists.txt
vendored
@ -1,5 +1,5 @@
|
||||
|
||||
if( WIN32 )
|
||||
if( MSVC )
|
||||
find_path( MSINTTYPES_INCLUDE_DIRS "inttypes.h"
|
||||
PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include"
|
||||
NO_DEFAULT_PATH )
|
||||
|
BIN
3rdparty/pcre/lib/libpcre.dll.a
vendored
Normal file
BIN
3rdparty/pcre/lib/libpcre.dll.a
vendored
Normal file
Binary file not shown.
@ -41,10 +41,12 @@ elseif( "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}" )
|
||||
"Do not use the source directory to build your files, instead delete CMakeCache.txt, create a separate folder and build there.\n"
|
||||
"Example: (build in subdir 'build' and install to source dir)\n"
|
||||
" rm -f CMakeCache.txt\n"
|
||||
" mkdir build && cd build\n"
|
||||
" mkdir build\n"
|
||||
" cd build\n"
|
||||
" cmake -G\"Unix Makefiles\" -DINSTALL_TO_SOURCE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo ..\n"
|
||||
" make install\n"
|
||||
" cd .. && rm -rf build\n"
|
||||
" cd ..\n"
|
||||
" rm -rf build\n"
|
||||
"To skip this check, set ALLOW_SAME_DIRECTORY to ON (-DALLOW_SAME_DIRECTORY=ON)" )
|
||||
endif()
|
||||
|
||||
@ -58,9 +60,9 @@ set( GLOBAL_DEFINITIONS ${COMPILE_DEFINITIONS} CACHE INTERNAL "" )# string (spa
|
||||
mark_as_advanced( GLOBAL_LIBRARIES GLOBAL_INCLUDE_DIRS GLOBAL_DEFINITIONS )
|
||||
if( WIN32 )
|
||||
set_property( CACHE GLOBAL_DEFINITIONS PROPERTY VALUE "${GLOBAL_DEFINITIONS} -DFD_SETSIZE=4096" )
|
||||
set_property( CACHE GLOBAL_LIBRARIES PROPERTY VALUE ${GLOBAL_LIBRARIES} "oldnames.lib" "ws2_32.lib" )
|
||||
endif()
|
||||
if( MSVC )
|
||||
set_property( CACHE GLOBAL_LIBRARIES PROPERTY VALUE ${GLOBAL_LIBRARIES} "oldnames.lib" "ws2_32.lib" )
|
||||
set_property( CACHE GLOBAL_DEFINITIONS PROPERTY VALUE "${GLOBAL_DEFINITIONS} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DDB_MANUAL_CAST_TO_UNION" )
|
||||
endif()
|
||||
|
||||
@ -158,12 +160,12 @@ endif()
|
||||
|
||||
|
||||
#
|
||||
# socket/nsl library (Solaris)
|
||||
# socket/nsl/ws2_32 library (Solaris/MinGW)
|
||||
#
|
||||
if( NOT WIN32 )
|
||||
message( STATUS "Detecting socket/nsl library (networking)" )
|
||||
if( NOT MSVC )
|
||||
message( STATUS "Detecting socket/nsl/ws2_32 library (networking)" )
|
||||
set( CMAKE_REQUIRED_LIBRARIES ${GLOBAL_LIBRARIES} )
|
||||
find_function_library( bind FUNCTION_BIND_LIBRARIES socket )
|
||||
find_function_library( bind FUNCTION_BIND_LIBRARIES socket ws2_32 )
|
||||
if( FUNCTION_BIND_LIBRARIES )
|
||||
message( STATUS "Adding global library: ${FUNCTION_BIND_LIBRARIES}" )
|
||||
list( APPEND GLOBAL_LIBRARIES ${FUNCTION_BIND_LIBRARIES} )
|
||||
@ -174,7 +176,7 @@ if( FUNCTION_GETHOSTBYNAME_LIBRARIES )
|
||||
message( STATUS "Adding global library: ${FUNCTION_GETHOSTBYNAME_LIBRARIES}" )
|
||||
list( APPEND GLOBAL_LIBRARIES ${FUNCTION_GETHOSTBYNAME_LIBRARIES} )
|
||||
endif()
|
||||
message( STATUS "Detecting socket/nsl library (networking) - done" )
|
||||
message( STATUS "Detecting socket/nsl/ws2_32 library (networking) - done" )
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -4,6 +4,8 @@ Date Added
|
||||
* CMake: set project language to C, added module FindFunctionLibrary, added search for dl library. (tested with debian-wheezy-i386) [FlavioJS]
|
||||
* CMake: added search for math.h, added search for socket/nsl library. (tested with Solaris-201011-x86)
|
||||
* Added missing include to socket.c.
|
||||
* CMake: added search for ws2_32 library. (tested with MinGW/MSYS)
|
||||
* Added missing pcre library for MinGW.
|
||||
2011/07/11
|
||||
* Rev. 14901 Added bonus3 bAddClassDropItem, care of Epoque. [L0ne_W0lf]
|
||||
2011/07/10
|
||||
|
Loading…
x
Reference in New Issue
Block a user