summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorWilliam R. Dieter <william.r.dieter@intel.com>2021-01-15 17:02:16 -0500
committerBrad King <brad.king@kitware.com>2021-01-28 09:07:01 -0500
commit7de61526a01305b058dad99a11b81e2d3fe18ed6 (patch)
tree9d5eef4a0d995f9b18c03342c24a6238f5474778 /Tests
parentae9f986da1d493f243c0c4bca7dab8dcee6a2861 (diff)
downloadcmake-7de61526a01305b058dad99a11b81e2d3fe18ed6.tar.gz
Tests: Update CPack DEBUGINFO tests for IntelLLVM
By default icx and icpx do not add build IDs when linking, so enable the build ID to make the test pass. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake b/Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake
index 04b44f6d29..9ff1f8a049 100644
--- a/Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake
+++ b/Tests/RunCMake/CPack/tests/DEBUGINFO/test.cmake
@@ -1,7 +1,7 @@
set(CMAKE_BUILD_WITH_INSTALL_RPATH 1)
# Some compilers do not add build id to binaries by default.
-if(CMAKE_CXX_COMPILER_ID MATCHES "^(PGI|NVHPC)$")
+if(CMAKE_CXX_COMPILER_ID MATCHES "^(IntelLLVM|PGI|NVHPC)$")
string(APPEND CMAKE_EXE_LINKER_FLAGS "-Wl,--build-id")
string(APPEND CMAKE_SHARED_LINKER_FLAGS "-Wl,--build-id")
endif()