Skip to content

Commit

Permalink
Merge pull request #110 from sudara/static-runtime
Browse files Browse the repository at this point in the history
Statically link to Visual C++ Runtime on Windows
  • Loading branch information
sudara authored Jun 19, 2024
2 parents 6dfd6f3 + 213bbc8 commit e169995
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
# 3.24.1 is also bundled in CLion as of 2023
cmake_minimum_required(VERSION 3.24.1)


# This tells cmake we have goodies in the /cmake folder
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include (PamplejuceVersion)

# Configures universal binaries and decides which version of macOS to support
include(PamplejuceMacOS)

# Couple tweaks that IMO should be JUCE defaults
include(JUCEDefaults)

# Change me!
# This is the internal name of the project and the name of JUCE's shared code target
# Note: This cannot have spaces (it may be 2024, but you can't have it all!)
Expand Down Expand Up @@ -36,9 +40,6 @@ set(FORMATS Standalone AU VST3 AUv3)
# For simplicity, the name of the CMake project is also the name of the target
project(${PROJECT_NAME} VERSION ${CURRENT_VERSION})

# Couple tweaks that IMO should be JUCE defaults
include(JUCEDefaults)

# JUCE is setup as a submodule in the /JUCE folder
# Locally, you must run `git submodule update --init --recursive` once
# and later `git submodule update --remote --merge` to keep it up to date
Expand Down Expand Up @@ -84,9 +85,8 @@ juce_add_plugin("${PROJECT_NAME}"
# Without running into ODR violations
add_library(SharedCode INTERFACE)

# C++20, please
# Use cxx_std_23 for C++23 (as of CMake v 3.20)
target_compile_features(SharedCode INTERFACE cxx_std_20)
# Enable fast math, C++20 and a few other target defaults
include(SharedCodeDefaults)

# Manually list all .h and .cpp files for the plugin
# If you are like me, you'll use globs for your sanity.
Expand Down Expand Up @@ -149,8 +149,8 @@ include(PamplejuceIPP)
# Everything related to the tests target
include(Tests)

# A separate target keeps the Tests target fast!
# A separate target for Benchmarks (keeps the Tests target fast)
include(Benchmarks)

# Pass some config to GA (like our PRODUCT_NAME)
# Output some config for CI (like our PRODUCT_NAME)
include(GitHubENV)
2 changes: 1 addition & 1 deletion cmake

0 comments on commit e169995

Please sign in to comment.