oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

CMake: Set _FORTIFY_SOURCE once

Open jschueller opened this issue 2 years ago • 0 comments

Description

Avoids to redefine _FORTIFY_SOURCE twice:

[  2%] Building CXX object src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.obj
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]

Fixes # - issue number(s) if exists

  • [x] - git commit message contains an appropriate signed-off-by string (see CONTRIBUTING.md for details)

Type of change

Choose one or multiple, leave empty if none of the other choices apply

Add a respective label(s) to PR if you have permissions

  • [ ] bug fix - change that fixes an issue
  • [ ] new feature - change that adds functionality
  • [ ] tests - change in tests
  • [ ] infrastructure - change in infrastructure and CI
  • [ ] documentation - documentation update

Tests

  • [ ] added - required for new features and some bug fixes
  • [x] not needed

Documentation

  • [ ] updated in # - add PR number
  • [ ] needs to be updated
  • [x] not needed

Breaks backward compatibility

  • [x] Yes
  • [ ] No
  • [ ] Unknown

Notify the following users

List users with @ to send notifications

Other information

jschueller avatar Nov 22 '23 19:11 jschueller