From 7f1dfb6284008e16b1aeb71fa5ae47c83617a6d5 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 31 Jan 2019 15:56:27 -0800 Subject: [PATCH] Set CMAKE_ARCHIVE_OUTPUT_DIRECTORY This allows Xcode archive builds to succeed. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f29d33986..32dee2061 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,9 @@ SOURCE_GROUP("Builtins" REGULAR_EXPRESSION "builtin_.*") # Support folders. SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON) +# Work around issue where archive-built libs go in the wrong place. +SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") IF(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)