From ba556553aea3e0241f337182b13429b736aa469b Mon Sep 17 00:00:00 2001 From: Earle Lowe Date: Wed, 30 Oct 2024 12:05:00 -0700 Subject: [PATCH] Try setting specific output directory for static libs --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9ae4c210..19c264a5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.14 FATAL_ERROR) set(CMAKE_CXX_STANDARD 17) set(CMAKE_POSITION_INDEPENDENT_CODE ON) + IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE "RELEASE") ENDIF() @@ -125,6 +126,7 @@ FetchContent_Declare( GIT_REPOSITORY https://github.com/BLAKE3-team/BLAKE3.git GIT_TAG 1.5.0 ) +set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "$<1:${CMAKE_BINARY_DIR}/lib>") FetchContent_GetProperties(blake3) if(NOT blake3_POPULATED)