From 3255b4232c3a0abedecd6154e91783c45b13d461 Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Fri, 6 Oct 2023 21:07:55 +0200 Subject: [PATCH] Move ccache wrappers for macOS and iOS builds to apple/ dir --- CMakeLists.txt | 16 ++++++++-------- {ios => xcode}/launch-c.in | 0 {ios => xcode}/launch-cxx.in | 0 3 files changed, 8 insertions(+), 8 deletions(-) rename {ios => xcode}/launch-c.in (100%) rename {ios => xcode}/launch-cxx.in (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index f14185d99..657b06c2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,16 +90,16 @@ if(ENABLE_CCACHE AND (CMAKE_GENERATOR STREQUAL "Xcode")) if(CCACHE) # https://stackoverflow.com/a/36515503/2278742 # Set up wrapper scripts - configure_file(ios/launch-c.in ios/launch-c) - configure_file(ios/launch-cxx.in ios/launch-cxx) + configure_file(xcode/launch-c.in xcode/launch-c) + configure_file(xcode/launch-cxx.in xcode/launch-cxx) execute_process(COMMAND chmod a+rx - "${CMAKE_BINARY_DIR}/ios/launch-c" - "${CMAKE_BINARY_DIR}/ios/launch-cxx") + "${CMAKE_BINARY_DIR}/xcode/launch-c" + "${CMAKE_BINARY_DIR}/xcode/launch-cxx") # Set Xcode project attributes to route compilation through our scripts - set(CMAKE_XCODE_ATTRIBUTE_CC "${CMAKE_BINARY_DIR}/ios/launch-c") - set(CMAKE_XCODE_ATTRIBUTE_CXX "${CMAKE_BINARY_DIR}/ios/launch-cxx") - set(CMAKE_XCODE_ATTRIBUTE_LD "${CMAKE_BINARY_DIR}/ios/launch-c") - set(CMAKE_XCODE_ATTRIBUTE_LDPLUSPLUS "${CMAKE_BINARY_DIR}/ios/launch-cxx") + set(CMAKE_XCODE_ATTRIBUTE_CC "${CMAKE_BINARY_DIR}/xcode/launch-c") + set(CMAKE_XCODE_ATTRIBUTE_CXX "${CMAKE_BINARY_DIR}/xcode/launch-cxx") + set(CMAKE_XCODE_ATTRIBUTE_LD "${CMAKE_BINARY_DIR}/xcode/launch-c") + set(CMAKE_XCODE_ATTRIBUTE_LDPLUSPLUS "${CMAKE_BINARY_DIR}/xcode/launch-cxx") endif() endif() diff --git a/ios/launch-c.in b/xcode/launch-c.in similarity index 100% rename from ios/launch-c.in rename to xcode/launch-c.in diff --git a/ios/launch-cxx.in b/xcode/launch-cxx.in similarity index 100% rename from ios/launch-cxx.in rename to xcode/launch-cxx.in