Browse Source

CMake: Fix 3.12 compatibility issues

tags/2021-05-28
reuk 5 years ago
parent
commit
bfea6c6cd8
2 changed files with 6 additions and 1 deletions
  1. +5
    -1
      CMakeLists.txt
  2. +1
    -0
      extras/Build/juceaide/CMakeLists.txt

+ 5
- 1
CMakeLists.txt 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")


+ 1
- 0
extras/Build/juceaide/CMakeLists.txt 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"


Loading…
Cancel
Save