1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CMake: Explicitly set MSVC runtime library for juceaide

This commit is contained in:
reuk 2021-06-03 15:14:16 +01:00
parent 7ac6911ccc
commit cb7bda4529
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
2 changed files with 7 additions and 0 deletions

View file

@ -23,6 +23,10 @@
cmake_minimum_required(VERSION 3.12)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.15)
cmake_policy(SET CMP0091 NEW)
endif()
project(JUCE VERSION 6.0.8 LANGUAGES C CXX)
set_property(GLOBAL PROPERTY USE_FOLDERS YES)

View file

@ -42,6 +42,9 @@ if(JUCE_BUILD_HELPER_TOOLS)
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags)
set_target_properties(juceaide PROPERTIES
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
export(TARGETS juceaide
NAMESPACE juce_tools::
FILE "${JUCE_BINARY_DIR}/JUCEToolsExport.cmake")