Skip to content

Commit f7a3dc8

Browse files
raramakrlamb-j
authored andcommitted
Limit the linking of libraries like pthread, rt, C and dl to unix systems
The linking of pthread is causing failures in windows environment Change-Id: I7d9ea696427a3944495a439f4bf6d10bda7f893d
1 parent 1b2d4e0 commit f7a3dc8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

amd/comgr/CMakeLists.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,14 @@ if (NOT UNIX)
398398
PRIVATE version)
399399
endif()
400400

401-
target_link_libraries(amd_comgr
402-
PRIVATE
403-
pthread
404-
rt
405-
c
406-
${CMAKE_DL_LIBS})
401+
if (NOT WIN32)
402+
target_link_libraries(amd_comgr
403+
PRIVATE
404+
pthread
405+
rt
406+
c
407+
${CMAKE_DL_LIBS})
408+
endif()
407409

408410
include(CTest)
409411
if(BUILD_TESTING)

0 commit comments

Comments
 (0)