Skip to content

Commit 4b33e3d

Browse files
authored
[Comgr] Use CLANG_LINK_CLANG_DYLIB instead of checking if the clangFrontendTool target exists (#632)
`TARGET clangFrontendTool` was used to check if libclang-cpp was built or not. Instead, use CLANG_LINK_CLANG_DYLIB which is the actual CMake flag that controls if libclang-cpp is built.
2 parents 0576f51 + 560a61e commit 4b33e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amd/comgr/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ install(FILES
406406
COMPONENT amd-comgr
407407
DESTINATION "${CMAKE_INSTALL_LIBDIR}/${AMD_COMGR_PACKAGE_PREFIX}")
408408

409-
if(TARGET clangFrontendTool)
409+
if(NOT CLANG_LINK_CLANG_DYLIB)
410410
set(CLANG_LIBS
411411
clangBasic
412412
clangDriver

0 commit comments

Comments
 (0)