Project

General

Profile

Actions

Bug #52353

closed

cmake: handle empty CMAKE_THREAD_LIBS_INIT

Added by Ken Dreyer over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

CMAKE_THREAD_LIBS_INIT can be empty. On CentOS Stream 9, this leads to an error:

CMake Error at cmake/modules/Buildpmem.cmake:47 (set_target_properties):
  set_target_properties called with incorrect number of arguments.

My solution is to quote the variable so that cmake treats this as an empty string. With this change, cmake 3.20.2 succeeds on CentOS 9.


Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #52610: pacific: cmake: handle empty CMAKE_THREAD_LIBS_INITResolvedKen DreyerActions
Actions

Also available in: Atom PDF