Issue Description
When trying to build the library for Windows-static, it finds two .lib files: one generated as usual with add_library(uhd SHARED ${libuhd_sources}), and another generated when ENABLE_STATIC_LIBS was set: add_library(uhd_static STATIC ${libuhd_sources} $<TARGET_OBJECTS:uhd_rc>).
Is this expected behavior? Should windows-static be supported?
https://github.com/EttusResearch/uhd/blob/v4.10.0.0/host/lib/CMakeLists.txt#L177
https://github.com/EttusResearch/uhd/blob/v4.10.0.0/host/lib/CMakeLists.txt#L288
ninja: error: build.ninja:4082: multiple rules generate lib/uhd.lib
Setup Details
Windows static version 4.10.0.0
Expected Behavior
Only one library is created to avoid issues during compilation.
Actual Behaviour
There are creating to .lib
Steps to reproduce the problem
Build on Windows setting ENABLE_STATIC_LIBS=True
Additional Information
complete build log:
Using lockfile: 'C:\workspace\cci_prod_PR-30158\uhd_4.10.0.0_72bc44f6e7957817ebeca33833594870.lock'
======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows
[options]
*:shared=False
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.system.pipenv:python_interpreter=C:/Python313/python.exe
user.openssl:windows_use_jom=True
bmx/*:tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022
ginkgo/*:tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022
qt/6*:tools.cmake.cmaketoolchain:extra_variables={'CMAKE_MESSAGE_LOG_LEVEL': 'DEBUG'}
[buildenv]
PATH=+(path)C:/Python313
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.system.pipenv:python_interpreter=C:/Python313/python.exe
user.openssl:windows_use_jom=True
bmx/*:tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022
ginkgo/*:tools.cmake.cmaketoolchain:generator=Visual Studio 17 2022
qt/6*:tools.cmake.cmaketoolchain:extra_variables={'CMAKE_MESSAGE_LOG_LEVEL': 'DEBUG'}
[buildenv]
PATH=+(path)C:/Python313
======== Computing dependency graph ========
Graph root
cli
Requirements
boost/1.89.0#b1af978c3ba65782f4503bc3a1ca120f - Cache
bzip2/1.0.8#c470882369c2d95c5c77e970c0c7e321 - Cache
uhd/4.10.0.0#72bc44f6e7957817ebeca33833594870 - Cache
zlib/1.3.2#1cb806da49011867778ffb6ac7190fcb - Cache
Build requirements
b2/5.4.2#ffd6084a119587e70f11cd45d1a386e2 - Cache
======== Computing necessary packages ========
Connecting to remote 'ci-builds' with user 'cci-ci-reader'
Connecting to remote 'conancenter' with user 'cci-ci-reader'
boost/1.89.0: Main binary package '1611e755fcba3fc4545cb3e155cd6c88a22ca5ad' missing
boost/1.89.0: Checking 7 compatible configurations
boost/1.89.0: Compatible configurations not found in cache, checking servers
boost/1.89.0: Found 1 compatible configurations in remotes
boost/1.89.0: 'ab3a6cebe224cf802fd000ef52cdffe3922da12f': compiler.cppstd=14
boost/1.89.0: Found compatible package 'ab3a6cebe224cf802fd000ef52cdffe3922da12f': compiler.cppstd=14
Requirements
boost/1.89.0#b1af978c3ba65782f4503bc3a1ca120f:ab3a6cebe224cf802fd000ef52cdffe3922da12f#e9c835d4bd1e51b3c1f2250251d4f370 - Download (ci-builds)
bzip2/1.0.8#c470882369c2d95c5c77e970c0c7e321:885590b8d4960dd9be0d7cd4c17646ce20f8a9aa#b1f8c4f42a451402d0ca713095953fbc - Download (ci-builds)
uhd/4.10.0.0#72bc44f6e7957817ebeca33833594870:04bddeaea49ec14eeb71ae17e7764cfcc78f573b - Build
zlib/1.3.2#1cb806da49011867778ffb6ac7190fcb:0d6dd492a7d31822b2f2686ec67bbaef586416a3#5ca7be7b16c68f62ebc4981fd5d11af2 - Download (ci-builds)
Build requirements
Skipped binaries
b2/5.4.2
======== Installing packages ========
-------- Downloading 3 packages --------
Downloading binary packages in 8 parallel threads
bzip2/1.0.8: Retrieving package 885590b8d4960dd9be0d7cd4c17646ce20f8a9aa from remote 'ci-builds'
zlib/1.3.2: Retrieving package 0d6dd492a7d31822b2f2686ec67bbaef586416a3 from remote 'ci-builds'
boost/1.89.0: Retrieving package ab3a6cebe224cf802fd000ef52cdffe3922da12f from remote 'ci-builds'
bzip2/1.0.8: Package installed 885590b8d4960dd9be0d7cd4c17646ce20f8a9aa
bzip2/1.0.8: Downloaded package revision b1f8c4f42a451402d0ca713095953fbc
zlib/1.3.2: Package installed 0d6dd492a7d31822b2f2686ec67bbaef586416a3
zlib/1.3.2: Downloaded package revision 5ca7be7b16c68f62ebc4981fd5d11af2
boost/1.89.0: Downloading 29.6MB conan_package.tgz
boost/1.89.0: Decompressing 29.6MB conan_package.tgz
boost/1.89.0: Package installed ab3a6cebe224cf802fd000ef52cdffe3922da12f
boost/1.89.0: Downloaded package revision e9c835d4bd1e51b3c1f2250251d4f370
boost/1.89.0: Disabled magic autolinking (smart and magic decisions)
-------- Installing package uhd/4.10.0.0 (4 of 4) --------
uhd/4.10.0.0: Building from source
uhd/4.10.0.0: Package uhd/4.10.0.0:04bddeaea49ec14eeb71ae17e7764cfcc78f573b
uhd/4.10.0.0: settings: os=Windows arch=x86_64 compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=194 build_type=Release
uhd/4.10.0.0: options: shared=False
uhd/4.10.0.0: requires: boost/1.89.Z zlib/1.3.Z bzip2/1.0.Z
uhd/4.10.0.0: Building your package in C:\j\30158-9\b\uhd54940807c3cf2\b
uhd/4.10.0.0: Calling generate()
uhd/4.10.0.0: Generators folder: C:\j\30158-9\b\uhd54940807c3cf2\b\build\Release\generators
WARN: deprecated: 'tools.system.pipenv:python_interpreter' is deprecated, use 'tools.system.pyenv:python_interpreter'
uhd/4.10.0.0: RUN: C:/Python313/python.exe -m venv C:\j\30158-9\b\uhd54940807c3cf2\b\build\Release\conan_pyenv
uhd/4.10.0.0: RUN: C:/j/30158-9/b/uhd54940807c3cf2/b/build/Release/conan_pyenv/Scripts/python.exe -m pip install --disable-pip-version-check "Mako~=1.3"
Collecting Mako~=1.3
Using cached mako-1.3.12-py3-none-any.whl.metadata (2.9 kB)
Collecting MarkupSafe>=0.9.2 (from Mako~=1.3)
Using cached markupsafe-3.0.3-cp313-cp313-win_amd64.whl.metadata (2.8 kB)
Using cached mako-1.3.12-py3-none-any.whl (78 kB)
Using cached markupsafe-3.0.3-cp313-cp313-win_amd64.whl (15 kB)
Installing collected packages: MarkupSafe, Mako
Successfully installed Mako-1.3.12 MarkupSafe-3.0.3
uhd/4.10.0.0: CMakeDeps necessary find_package() and targets for your CMakeLists.txt
find_package(Boost)
target_link_libraries(... boost::boost)
uhd/4.10.0.0: CMakeToolchain generated: conan_toolchain.cmake
uhd/4.10.0.0: CMakeToolchain generated: C:\j\30158-9\b\uhd54940807c3cf2\b\build\Release\generators\CMakePresets.json
uhd/4.10.0.0: Generating aggregated env files
uhd/4.10.0.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
uhd/4.10.0.0: Calling build()
uhd/4.10.0.0: Running CMake.configure()
uhd/4.10.0.0: RUN: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/j/30158-9/b/uhd54940807c3cf2/p" -DPYTHON_EXECUTABLE="C:/j/30158-9/b/uhd54940807c3cf2/b/build/Release/conan_pyenv/Scripts/python.exe" -DENABLE_PYTHON_API="OFF" -DENABLE_EXAMPLES="OFF" -DENABLE_TESTS="OFF" -DENABLE_B100="OFF" -DENABLE_USRP1="OFF" -DENABLE_X300="OFF" -DENABLE_MPMD="OFF" -DENABLE_OCTOCLOCK="OFF" -DENABLE_STATIC_LIBS="ON" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_C_COMPILER="cl" -DCMAKE_CXX_COMPILER="cl" "C:/j/30158-9/uhd87e4bf00d6c86/s/src/host"
conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - winsdk_version=None - vcvars_ver=14.4
[vcvarsall.bat] Environment initialized for: 'x64'
-- Using Conan toolchain: C:/j/30158-9/b/uhd54940807c3cf2/b/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_MSVC_RUNTIME_LIBRARY=$<$<CONFIG:Release>:MultiThreadedDLL>
-- Conan toolchain: C++ Standard 17 with extensions OFF
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The CXX compiler identification is MSVC 19.44.35213.0
-- The C compiler identification is MSVC 19.44.35213.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Warning: Standard CMAKE_CXX_STANDARD value defined in conan_toolchain.cmake to 17 has been modified to 20 by C:/j/30158-9/uhd87e4bf00d6c86/s/src/host/CMakeLists.txt
--
-- Configuring the Python interpreter...
-- Manually determining build Python version...
-- Python interpreter: C:/j/30158-9/b/uhd54940807c3cf2/b/build/Release/conan_pyenv/Scripts/python.exe Version: 3.13.4
-- Override with: -DPYTHON_EXECUTABLE=<path-to-python>
-- Python runtime interpreter: C:/j/30158-9/b/uhd54940807c3cf2/b/build/Release/conan_pyenv/Scripts/python.exe Version: 3.13.4
-- Override with: -DRUNTIME_PYTHON_EXECUTABLE=<path-to-python>
-- Finding Python Libraries...
-- Could not find Python Libraries.
fatal: not a git repository (or any of the parent directories): .git
-- Could not determine git branch. Probably building from tarball.
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
-- Check size of void*[8]
-- Check size of void*[8] - done
-- Using UHD Images Directory: C:\j\30158-9\b\uhd54940807c3cf2\p\share\uhd\images
-- Building Static Libraries: ON
--
-- Configuring Boost C++ Libraries...
--
-- Checking for Boost version 1.71 or greater
-- Static Libs
-- Looking for required Boost components...
-- Checking whether std::string_view works in boost::asio
-- Enabling boost::asio use of std::string_view
-- Boost version: 1.89.0
-- Boost include directories: C:/j/30158-9/boost7eb82b68003b9/p/include
-- Boost library directories:
-- Boost libraries: boost::boost
-- Looking for Boost version 1.71 or greater - found
--
-- Python checking for compatible Python version
-- Python checking for compatible Python version - 3.13.4 satisfies minimum required version 3.7
--
-- Python checking for Mako templates module
-- Python checking for Mako templates module - 1.3.12 satisfies minimum required version 0.4.2
--
-- Python checking for requests module
-- Python checking for requests module - "import requests" failed (is it installed?)
--
-- Python checking for numpy module
-- Python checking for numpy module - "import numpy" failed (is it installed?)
--
-- Python checking for ruamel.yaml module
-- Python checking for ruamel.yaml module - "import ruamel.yaml" failed (is it installed?)
--
-- Configuring LibUHD support...
-- Dependency Boost_FOUND = 1
-- Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
-- Enabling LibUHD support.
-- Override with -DENABLE_LIBUHD=ON/OFF
--
-- Configuring LibUHD - C API support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling LibUHD - C API support.
-- Override with -DENABLE_C_API=ON/OFF
--
-- Configuring LibUHD - Python API support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency HAVE_PYTHON_MODULE_NUMPY = FALSE
-- Dependency HAVE_PYTHON_LIBS = FALSE
-- Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
-- Disabling LibUHD - Python API support.
-- Override with -DENABLE_PYTHON_API=ON/OFF
--
-- Configuring Examples support...
-- Dependency ENABLE_LIBUHD = ON
-- Disabling Examples support.
-- Override with -DENABLE_EXAMPLES=ON/OFF
--
-- Configuring Utils support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling Utils support.
-- Override with -DENABLE_UTILS=ON/OFF
--
-- Configuring Tests support...
-- Dependency ENABLE_LIBUHD = ON
-- Disabling Tests support.
-- Override with -DENABLE_TESTS=ON/OFF
--
-- Configuring Python Module (Utils only) support...
-- Dependency HAVE_PYTHON_MODULE_NUMPY = FALSE
-- Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
-- Dependency HAVE_PYTHON_MODULE_YAML = FALSE
-- Disabling Python Module (Utils only) support.
-- Override with -DENABLE_PYMOD_UTILS=ON/OFF
--
-- Configuring UHD Extended Packaging for Windows support...
-- Dependency ENABLE_LIBUHD = ON
-- Disabling UHD Extended Packaging for Windows support.
-- Override with -DENABLE_EXTEND_WIN_PACKAGING=ON/OFF
--
-- Configuring RFNoC/FPGA Development Files support...
-- Dependency ENABLE_LIBUHD = ON
-- Disabling RFNoC/FPGA Development Files support.
-- Override with -DENABLE_RFNOC_DEV=ON/OFF
--
-- Looking for libusb_handle_events_timeout_completed
-- Looking for libusb_handle_events_timeout_completed - not found
-- Looking for libusb_error_name
-- Looking for libusb_error_name - not found
-- Looking for libusb_strerror
-- Looking for libusb_strerror - not found
-- Could NOT find LIBUSB (missing: LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIRS)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find DPDK (missing: DPDK_INCLUDE_DIRS DPDK_CFLAGS DPDK_LDFLAGS DPDK_LIBRARIES)
--
-- Configuring USB support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency LIBUSB_FOUND = FALSE
-- Disabling USB support.
-- Override with -DENABLE_USB=ON/OFF
--
-- Configuring B100 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_USB = OFF
-- Disabling B100 support.
-- Override with -DENABLE_B100=ON/OFF
--
-- Configuring B200 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_USB = OFF
-- Disabling B200 support.
-- Override with -DENABLE_B200=ON/OFF
--
-- Configuring USRP1 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_USB = OFF
-- Disabling USRP1 support.
-- Override with -DENABLE_USRP1=ON/OFF
--
-- Configuring USRP2 support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling USRP2 support.
-- Override with -DENABLE_USRP2=ON/OFF
--
-- Configuring X300 support...
-- Dependency ENABLE_LIBUHD = ON
-- Disabling X300 support.
-- Override with -DENABLE_X300=ON/OFF
--
-- Configuring MPMD support...
-- Dependency ENABLE_LIBUHD = ON
-- Disabling MPMD support.
-- Override with -DENABLE_MPMD=ON/OFF
--
-- Configuring SIM support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_MPMD = OFF
-- Dependency ENABLE_PYTHON_API = OFF
-- Disabling SIM support.
-- Override with -DENABLE_SIM=ON/OFF
--
-- Configuring N300 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_MPMD = OFF
-- Disabling N300 support.
-- Override with -DENABLE_N300=ON/OFF
--
-- Configuring N320 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_MPMD = OFF
-- Disabling N320 support.
-- Override with -DENABLE_N320=ON/OFF
--
-- Configuring E320 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_MPMD = OFF
-- Disabling E320 support.
-- Override with -DENABLE_E320=ON/OFF
--
-- Configuring E300 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_MPMD = OFF
-- Disabling E300 support.
-- Override with -DENABLE_E300=ON/OFF
--
-- Configuring X400 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_MPMD = OFF
-- Disabling X400 support.
-- Override with -DENABLE_X400=ON/OFF
--
-- Configuring OctoClock support...
-- Dependency ENABLE_LIBUHD = ON
-- Disabling OctoClock support.
-- Override with -DENABLE_OCTOCLOCK=ON/OFF
--
-- Configuring DPDK support...
-- Dependency ENABLE_MPMD = OFF
-- Dependency DPDK_FOUND = FALSE
-- Disabling DPDK support.
-- Override with -DENABLE_DPDK=ON/OFF
--
-- Looking for C++ include emmintrin.h
-- Looking for C++ include emmintrin.h - found
--
-- Configuring priority scheduling...
-- Performing Test HAVE_PTHREAD_SETSCHEDPARAM
-- Performing Test HAVE_PTHREAD_SETSCHEDPARAM - Failed
-- Performing Test HAVE_WIN_SETTHREADPRIORITY
-- Performing Test HAVE_WIN_SETTHREADPRIORITY - Success
-- Priority scheduling supported through windows SetThreadPriority.
-- Performing Test HAVE_PTHREAD_SETNAME
-- Performing Test HAVE_PTHREAD_SETNAME - Failed
-- Performing Test HAVE_BOOST_PTHREAD_SETNAME
-- Performing Test HAVE_BOOST_PTHREAD_SETNAME - Failed
-- Performing Test HAVE_STD_PTHREAD_SETNAME
-- Performing Test HAVE_STD_PTHREAD_SETNAME - Failed
-- Setting pthread names is not supported.
-- Setting boost::thread names is not supported.
-- Setting std::thread names is not supported.
-- Performing Test HAVE_PTHREAD_SETAFFINITY_NP
-- Performing Test HAVE_PTHREAD_SETAFFINITY_NP - Failed
-- Performing Test HAVE_WIN_SETTHREADAFFINITYMASK
-- Performing Test HAVE_WIN_SETTHREADAFFINITYMASK - Success
-- Setting thread affinity is supported through windows SetThreadAffinityMask.
--
-- Configuring module loading...
-- Performing Test HAVE_DLOPEN
-- Performing Test HAVE_DLOPEN - Failed
-- Performing Test HAVE_LOAD_LIBRARY
-- Performing Test HAVE_LOAD_LIBRARY - Success
-- Module loading supported through LoadLibrary.
--
-- Configuring atomics support...
-- Atomics support is built-in, no linking required.
--
-- Configuring interface address discovery...
-- Performing Test HAVE_GETIFADDRS
-- Performing Test HAVE_GETIFADDRS - Failed
-- Looking for C++ include winsock2.h
-- Looking for C++ include winsock2.h - found
-- Interface address discovery supported through SIO_GET_INTERFACE_LIST.
-- Looking for C++ include atlbase.h
-- Looking for C++ include atlbase.h - found
--
-- Loading build info.
-- Boost_USE_STATIC_LIBS=ON
--
-- Checking for Boost version 1.71 or greater
-- Static Libs
-- Looking for required Boost components...
-- Checking whether std::string_view works in boost::asio
-- Enabling boost::asio use of std::string_view
-- Boost version: 1.89.0
-- Boost include directories: C:/j/30158-9/boost7eb82b68003b9/p/include
-- Boost library directories:
-- Boost libraries: boost::boost
-- Looking for Boost version 1.71 or greater - found
-- Detected target endianness: UHD_LITTLE_ENDIAN
CMake Warning at utils/CMakeLists.txt:104 (message):
Python module `requests' not found -- uhd_images_downloader.py will not
work without it.
CMake Warning at utils/CMakeLists.txt:107 (message):
You may be able to install this by running 'pip install requests'
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
--
-- Compressed Man Pages disabled
-- Override with -DENABLE_MAN_PAGE_COMPRESSION=ON/OFF
--
-- Configuring Man Pages support...
-- Dependency NOT_WIN32 =
-- Disabling Man Pages support.
-- Override with -DENABLE_MAN_PAGES=ON/OFF
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Doxygen not found - skipping API/Doxygen and Manual components.
--
-- ######################################################
-- # UHD enabled components
-- ######################################################
-- * LibUHD
-- * LibUHD - C API
-- * Utils
-- * USRP2
--
-- ######################################################
-- # UHD disabled components
-- ######################################################
-- * LibUHD - Python API
-- * Examples
-- * Tests
-- * Python Module (Utils only)
-- * UHD Extended Packaging for Windows
-- * RFNoC/FPGA Development Files
-- * USB
-- * B100
-- * B200
-- * USRP1
-- * X300
-- * MPMD
-- * SIM
-- * N300
-- * N320
-- * E320
-- * E300
-- * X400
-- * OctoClock
-- * DPDK
-- * Man Pages
--
-- ******************************************************
-- * You are building a development branch of UHD.
-- * These branches are designed to provide early access
-- * to UHD and USRP features, but should be considered
-- * unstable and/or experimental!
-- ******************************************************
-- Building version: 4.10.0.0-0-unknown
-- Using install prefix: C:/j/30158-9/b/uhd54940807c3cf2/p
-- Configuring done
-- Generating done
CMake Error:
Running
'C:/PROGRA~1/MICROS~2/2022/COMMUN~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe' '-C' 'C:/j/30158-9/b/uhd54940807c3cf2/b/build/Release' '-t' 'recompact'
failed with:
ninja: error: build.ninja:4082: multiple rules generate lib/uhd.lib
CMake Generate step failed. Build files cannot be regenerated correctly.
uhd/4.10.0.0: ERROR:
Package '04bddeaea49ec14eeb71ae17e7764cfcc78f573b' build failed
uhd/4.10.0.0: WARN: Build folder C:\j\30158-9\b\uhd54940807c3cf2\b\build\Release
ERROR: uhd/4.10.0.0: Error in build() method, line 80
cmake.configure(build_script_folder="host")
ConanException: Error 1 while executing
Issue Description
When trying to build the library for Windows-static, it finds two .lib files: one generated as usual with
add_library(uhd SHARED ${libuhd_sources}), and another generated when ENABLE_STATIC_LIBS was set:add_library(uhd_static STATIC ${libuhd_sources} $<TARGET_OBJECTS:uhd_rc>).Is this expected behavior? Should windows-static be supported?
https://github.com/EttusResearch/uhd/blob/v4.10.0.0/host/lib/CMakeLists.txt#L177
https://github.com/EttusResearch/uhd/blob/v4.10.0.0/host/lib/CMakeLists.txt#L288
Setup Details
Windows static version 4.10.0.0
Expected Behavior
Only one library is created to avoid issues during compilation.
Actual Behaviour
There are creating to
.libSteps to reproduce the problem
Build on Windows setting ENABLE_STATIC_LIBS=True
Additional Information
complete build log: