Skip to content
Snippets Groups Projects
Commit 28c6ad51 authored by TESLA01\soerenpeters's avatar TESLA01\soerenpeters
Browse files

Set the CMAKE_MSVC_RUNTIME_LIBRARY

parent 3ab0da16
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,9 @@ ...@@ -8,8 +8,9 @@
################################################################################# #################################################################################
# required cmake versions # required cmake versions
# CMAKE 3.13: target_link_options # CMAKE 3.13: target_link_options
# CMAKE 3.15: CMAKE_MSVC_RUNTIME_LIBRARY
################################################################################# #################################################################################
cmake_minimum_required(VERSION 3.13..3.18 FATAL_ERROR) cmake_minimum_required(VERSION 3.15..3.18 FATAL_ERROR)
project(VirtualFluids CXX) project(VirtualFluids CXX)
...@@ -43,7 +44,14 @@ option(BUILD_VF_INCLUDE_WHAT_YOU_USE "Add IWYU to the targets" OFF) ...@@ -43,7 +44,14 @@ option(BUILD_VF_INCLUDE_WHAT_YOU_USE "Add IWYU to the targets" OFF)
option(BUILD_VF_CPPCHECK "Add cppcheck to the targets" OFF) option(BUILD_VF_CPPCHECK "Add cppcheck to the targets" OFF)
option(BUILD_VF_COVERAGE "Add the -coverage compiler flag." OFF) option(BUILD_VF_COVERAGE "Add the -coverage compiler flag." OFF)
option(BUILD_SHARED_LIBS "" ON) option(BUILD_SHARED_LIBS "" OFF)
# windows: use multi-threaded dynamically-linked runtime library
if(BUILD_SHARED_LIBS)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
else()
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
option(USE_OPENMP "Include OpenMP support" ON) option(USE_OPENMP "Include OpenMP support" ON)
......
...@@ -7,7 +7,7 @@ ELSE(MSVC) ...@@ -7,7 +7,7 @@ ELSE(MSVC)
ENDIF(MSVC) ENDIF(MSVC)
vf_add_library(BUILDTYPE shared PRIVATE_LINK ${libsToLink}) vf_add_library(PRIVATE_LINK ${libsToLink})
linkMPI() linkMPI()
linkCUDA() linkCUDA()
......
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