From 07e309f1548f6a6fbc68a54c362a7915dd33378e Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris <sideris.konstantin@gmail.com> Date: Fri, 6 Apr 2018 16:57:17 +0300 Subject: [PATCH] Add fixes for Windows --- CMakeLists.txt | 2 +- cmake/Boost.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 625c26623..30cc01ff9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.1) -project(matrix_client CXX) +project(matrix_client CXX C) option(ASAN "Compile with address sanitizers" OFF) option(BUILD_LIB_TESTS "Build tests" ON) diff --git a/cmake/Boost.cmake b/cmake/Boost.cmake index 228ce624a..3fd0438bb 100644 --- a/cmake/Boost.cmake +++ b/cmake/Boost.cmake @@ -18,6 +18,7 @@ ExternalProject_Add( BUILD_IN_SOURCE 1 SOURCE_DIR ${BUNDLED_BOOST_ROOT} CONFIGURE_COMMAND ${BUNDLED_BOOST_ROOT}/bootstrap.sh + --layout=system --with-libraries=random,thread,system,iostreams --prefix=${BUNDLED_BOOST_ROOT} BUILD_COMMAND ${BUNDLED_BOOST_ROOT}/b2 -d0 variant=release link=static threading=multi -- GitLab