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)