DoSmile
DoSmile

Reputation: 33

C++ AVRO , CMAKE failed

I am building AVRO C++, but when I build with CMAKE, I have some troubles. My CMAKE version is 3.5, and Boost version is 1.73.0.

Error:

CMake Error at /usr/local/lib/cmake/Boost-1.73.0/BoostConfig.cmake:240 (if):
  if given arguments:
    "ALL" "IN_LIST" "Boost_FIND_COMPONENTS"
  Unknown arguments specified

Upvotes: 3

Views: 1752

Answers (1)

Botje
Botje

Reputation: 30830

This behavior is specified in CMP0057. You should either bump the minimum CMake version of your project to 3.3:

cmake_minimum_required(VERSION 3.3)

or explicitly set the policy to the NEW behavior:

cmake_policy(SET CMP0057 NEW)

Upvotes: 2

Related Questions