Skip to content

Commit 60d0187

Browse files
committed
Don't link dl and pthread on Windows
Signed-off-by: cyy <[email protected]>
1 parent 145d68a commit 60d0187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libkineto/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ if(NOT LIBKINETO_NOCUPTI)
104104

105105
if(NOT USE_CUPTI_SO)
106106
include(CheckCXXSourceRuns)
107-
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} "dl" "pthread" $<LINK_LIBRARY:WHOLE_ARCHIVE,${cupti_LIBRARY}>)
107+
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} $<LINK_LIBRARY:WHOLE_ARCHIVE,${cupti_LIBRARY}>)
108108

109109
check_cxx_source_runs("#include <stdexcept>
110110
int main() {

0 commit comments

Comments
 (0)