diff --git a/sdk/core/azure-core/CMakeLists.txt b/sdk/core/azure-core/CMakeLists.txt index 24fff39154..a71b7395a6 100644 --- a/sdk/core/azure-core/CMakeLists.txt +++ b/sdk/core/azure-core/CMakeLists.txt @@ -23,7 +23,7 @@ include(AzureConfigRTTI) # Add create_map_file function include(CreateMapFile) -find_package(Threads REQUIRED) +find_package(INVALID_REQUIREMENT_PRODUCE_CMAKE_GENERATE_ERROR_Threads REQUIRED) if(BUILD_TRANSPORT_CURL) find_package(CURL CONFIG QUIET)