From 77fd58a9ed4871745f08955d4a6d487be1ded2a9 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Fri, 20 May 2016 12:24:54 +0530 Subject: [PATCH] Link against libc++ only on hcc platform Change-Id: I93569a5b8a9910dca0c88408cbe54fbb32384fcf [ROCm/hip commit: 87f402327e1539026d2ae9c94e167f6332f9e403] --- projects/hip/tests/src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/hip/tests/src/CMakeLists.txt b/projects/hip/tests/src/CMakeLists.txt index 3b0a86884c..cbf5860e8d 100644 --- a/projects/hip/tests/src/CMakeLists.txt +++ b/projects/hip/tests/src/CMakeLists.txt @@ -100,7 +100,9 @@ endmacro() # Make a hip executable, using libc++ macro (make_hip_executable_libcpp exe cpp) make_hip_executable( ${exe} ${cpp} ${ARGN} ) - set_source_files_properties (${cpp} i${ARGN} PROPERTIES COMPILE_FLAGS --stdlib=libc++ ) + if (${HIP_PLATFORM} STREQUAL "hcc") + set_source_files_properties (${cpp} i${ARGN} PROPERTIES COMPILE_FLAGS --stdlib=libc++ ) + endif() endmacro() macro (make_named_test exe testname )