mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 14:07:46 +00:00
Remove VS2015 boost compiler from CMake
This changes let CMake determine which boost compiler to use and therefore allowing it to use toolchain other than VS2015.
This commit is contained in:
parent
ce2dcb5530
commit
98e7873afe
1 changed files with 4 additions and 6 deletions
|
@ -2,16 +2,14 @@ cmake_minimum_required(VERSION 2.6)
|
|||
project (Sapphire)
|
||||
|
||||
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
|
||||
|
||||
|
||||
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
||||
|
||||
|
||||
set(PROJECT_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
# boost stuff
|
||||
if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
|
||||
set(Boost_COMPILER "-vc140")
|
||||
endif()
|
||||
# set(Boost_DEBUG 1)
|
||||
|
||||
if(NOT SAPPHIRE_BOOST_VER)
|
||||
set(SAPPHIRE_BOOST_VER 1.60.0)
|
||||
|
@ -20,6 +18,6 @@ set(SAPPHIRE_BOOST_FOLDER_NAME boost_1_60_0)
|
|||
|
||||
include_directories("${PROJECT_INCLUDE_DIR}")
|
||||
include_directories("${PROJECT_SOURCE_DIR}")
|
||||
|
||||
|
||||
add_subdirectory("src/servers")
|
||||
add_subdirectory("src/libraries/sapphire/datReader")
|
||||
|
|
Loading…
Add table
Reference in a new issue