Skip to content
Snippets Groups Projects
Unverified Commit 92f2bf25 authored by Lars Bilke's avatar Lars Bilke Committed by GitHub
Browse files

Merge pull request #1975 from bilke/win-fix

[CMake] Don't use x64 toolset on VS 2015, fixed Conan MDd linkage.
parents 2a5caabc 74a19cea
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,9 @@ cmake_minimum_required(VERSION 3.1) ...@@ -9,7 +9,9 @@ cmake_minimum_required(VERSION 3.1)
cmake_policy(SET CMP0011 NEW) cmake_policy(SET CMP0011 NEW)
cmake_policy(SET CMP0054 NEW) cmake_policy(SET CMP0054 NEW)
if(WIN32 AND NOT ${CMAKE_GENERATOR} STREQUAL Ninja) if(WIN32 AND
NOT ${CMAKE_GENERATOR} STREQUAL Ninja AND
NOT ${CMAKE_GENERATOR} MATCHES 2015) # does not work on 2015
# Force 64-bit VS compiler # Force 64-bit VS compiler
set(CMAKE_GENERATOR_TOOLSET host=x64) set(CMAKE_GENERATOR_TOOLSET host=x64)
endif() endif()
......
...@@ -18,7 +18,8 @@ if(NOT PROJECT_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) ...@@ -18,7 +18,8 @@ if(NOT PROJECT_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
set(OGS_BUILD_CLI OFF CACHE BOOL "" FORCE) set(OGS_BUILD_CLI OFF CACHE BOOL "" FORCE)
endif() endif()
if(NOT CMAKE_BUILD_TYPE AND (NOT CMAKE_CONFIGURATION_TYPES OR OGS_USE_CONAN)) if((NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
OR (NOT CMAKE_BUILD_TYPE AND MSVC AND OGS_USE_CONAN))
message(STATUS "Setting build type to 'Debug' as none was specified.") message(STATUS "Setting build type to 'Debug' as none was specified.")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE) set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment