From 8b8a54fe62507a9ca8057b3db58d0f11847d6f5a Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 4 Sep 2022 19:42:10 +0100 Subject: [PATCH] CMake: Use line tables on Unix even when BFD not found --- cmake/FindBFD.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindBFD.cmake b/cmake/FindBFD.cmake index 605cabd213..adb8672404 100644 --- a/cmake/FindBFD.cmake +++ b/cmake/FindBFD.cmake @@ -65,7 +65,7 @@ macro(test_compile_libbfd var libs) link_libraries(${libs}) endif () - if (BFD_FOUND) + if (BFD_FOUND OR UNIX) if (NOT (CMAKE_BUILD_TYPE STREQUAL "DEBUG" OR CMAKE_BUILD_TYPE STREQUAL "RELWITHDEBINFO")) if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") add_compile_options(-gline-tables-only)