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

CMake: Fix 3.12 compatibility issues

This commit is contained in:
reuk 2020-04-26 18:32:39 +01:00
parent 4292a38327
commit bfea6c6cd8
2 changed files with 6 additions and 1 deletions

View file

@ -72,11 +72,15 @@ endif()
# ==================================================================================================
# Install configuration
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.14")
set(extra_version_arg ARCH_INDEPENDENT)
endif()
include(CMakePackageConfigHelpers)
write_basic_package_version_file("${JUCE_BINARY_DIR}/JUCEConfigVersion.cmake"
VERSION ${JUCE_VERSION}
COMPATIBILITY ExactVersion
ARCH_INDEPENDENT)
${extra_version_arg})
set(JUCE_INSTALL_DESTINATION "lib/cmake/JUCE-${JUCE_VERSION}" CACHE STRING
"The location, relative to the install prefix, where the JUCE config file will be installed")

View file

@ -49,6 +49,7 @@ else()
# Looks like we're boostrapping, reinvoke CMake
execute_process(COMMAND "${CMAKE_COMMAND}"
"."
"-B${JUCE_BINARY_DIR}/tools"
"-G${CMAKE_GENERATOR}"
"-DCMAKE_BUILD_TYPE=Debug"