Skip to content

Commit

Permalink
update boost version and gcc version
Browse files Browse the repository at this point in the history
  • Loading branch information
geektcp committed Oct 12, 2023
1 parent 546438b commit 3354c50
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
25 changes: 18 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# build server

project(Everwar)

cmake_minimum_required(VERSION 3.11)
set(EVERWAR_VERSION 1.2)
cmake_minimum_required(VERSION 3.0)

include(cmake/common.cmake)

Expand All @@ -14,9 +14,17 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)

# set default buildoptions and print them
include(cmake/options.cmake)
set(EVERWAR_BASE /user/local/everwar)
set(CMAKE_INSTALL_PREFIX /user/local/${EVERWAR_BASE}-${EVERWAR_VERSION})

#set(BOOST_INCLUDEDIR /usr/local/boost-1.60.0_gcc-4.8.5/include)
#set(BOOST_BASE boost-1.60.0_gcc-4.8.5)
set(BOOST_BASE boost-1.71.0_gcc-10.5.0)

set(BOOST_INCLUDE_DIR /usr/local/boost/include)
set(OPENSSL_INCLUDE_DIR /usr/local/openssl/include)
set(BOOST_ROOT /usr/local/${BOOST_BASE})
link_directories(/usr/local/${BOOST_BASE}/lib)
include_directories(/usr/local/${BOOST_BASE}/include)
#set(OPENSSL_INCLUDE_DIR /usr/local/openssl/include)
# Force out-of-source build
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR
Expand Down Expand Up @@ -82,6 +90,8 @@ set(CMAKE_INSTALL_RPATH ../${LIBS_FOLDER_NAME})
set(CMAKE_INSTALL_NAME_DIR ${LIBS_DIR})

find_package(Boost)
message("||||Boost_LIBRARY_DIRS: " ${Boost_LIBRARY_DIRS})
message("||||oost_VERSION: " ${Boost_VERSION})
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
else()
Expand All @@ -102,7 +112,7 @@ endif()

# *nix-specific packages
if(UNIX)
set(BOOST_REQUIRED_VERSION 1.71)
set(BOOST_REQUIRED_VERSION 1.59)
if(POSTGRESQL)
find_package(PostgreSQL REQUIRED)

Expand All @@ -114,12 +124,13 @@ if(UNIX)
find_package(MySQL REQUIRED)
endif()

find_package(OpenSSL 1.1 REQUIRED)
find_package(OpenSSL 1.0 REQUIRED)
find_package(ZLIB REQUIRED)
endif()

# Find needed packages and if necessery abort if something important is missing
find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED COMPONENTS system filesystem program_options thread iostreams regex)
#find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED COMPONENTS system filesystem program_options thread iostreams regex)
message("====Boost_LIBRARIES: " ${Boost_LIBRARIES} "|" ${Boost_VERSION})

# Find core revision
if(GIT_EXECUTABLE)
Expand Down
4 changes: 3 additions & 1 deletion src/mangosd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ target_link_libraries(${EXECUTABLE_NAME}
framework
g3dlite
gsoap
${Boost_LIBRARIES}
boost_program_options
boost_system
boost_thread
)

if(WIN32)
Expand Down
4 changes: 3 additions & 1 deletion src/realmd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ add_dependencies(${EXECUTABLE_NAME} revision.h)
target_link_libraries(${EXECUTABLE_NAME}
shared
framework
${Boost_LIBRARIES}
boost_program_options
boost_system
boost_thread
)

if(WIN32)
Expand Down

0 comments on commit 3354c50

Please sign in to comment.