Skip to content

Commit b42b0c0

Browse files
committed
Fix building the coarse library on Windows
The extra sources and libraries are redundant on Windows. They cause the "duplicate symbol" errors. Signed-off-by: Lukasz Dorau <[email protected]>
1 parent f6cbe83 commit b42b0c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coarse/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Copyright (C) 2024 Intel Corporation
1+
# Copyright (C) 2024-2025 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

55
include(${UMF_CMAKE_SOURCE_DIR}/cmake/helpers.cmake)
66

77
set(COARSE_SOURCES coarse.c ../ravl/ravl.c)
88

9-
if(UMF_BUILD_SHARED_LIBRARY)
9+
if(UMF_BUILD_SHARED_LIBRARY AND (NOT WINDOWS))
1010
set(COARSE_EXTRA_SRCS ${BA_SOURCES})
1111
set(COARSE_EXTRA_LIBS $<BUILD_INTERFACE:umf_utils>)
1212
endif()

0 commit comments

Comments
 (0)