Since you're adding this line, also add the -DBOOST_ALL_NO_LIB to add_definitions.