From 4ef4c1ea1f333f958f0324bc1803c7d3eb4333ba Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 18 Mar 2021 08:18:18 +0100 Subject: [PATCH] build: `CONFIG REQUIRED` added for `range-v3` --- src/core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 27511653..ede16080 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -46,7 +46,7 @@ target_include_directories(mp-units-core INTERFACE if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if(UNITS_LIBCXX) - find_package(range-v3) + find_package(range-v3 CONFIG REQUIRED) target_link_libraries(mp-units-core INTERFACE range-v3::range-v3) endif() elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")