Windows: conan create fails due to non-existing target
Summary
linkahead/0.3.0-dev: Running CMake.build()
linkahead/0.3.0-dev: RUN: cmake --build "C:\Users\Joscha\.conan2\p\b\linka0cfbfa46a6518\b\build" --config Release --target all
MSBuild version 17.11.9+a69bbaaf5 for .NET Framework
MSBUILD : error MSB1009: Project file does not exist.
Switch: all.vcxproj
linkahead/0.3.0-dev: ERROR:
Package '47f95df738b0b2da811910569a691b51feeab282' build failed
linkahead/0.3.0-dev: WARN: Build folder C:\Users\Joscha\.conan2\p\b\linka0cfbfa46a6518\b\build
ERROR: linkahead/0.3.0-dev: Error in build() method, line 74
cmake.build(target=["all"]) # , "clinkaheadcli", "cxxlinkaheadcli"])
ConanException: Error 1 while executing
On Windows the target "all" does not exist (it's called ALL_BUILD).
Expected Behavior
conan create
should not fail.
Actual Behavior
conan create
fails and makes running the integration tests impossible.
Steps to Reproduce the Problem
Please describe, step by step, how others can reproduce the problem. Please try these steps for yourself on a clean system.
conan create .
Specifications
- Version: 0.3-dev
- Platform: Windows 11
Possible fixes
- Removing the
'all'
argument tocmake.build()
in theconanfile.py
- Excluding tests from all target?
Edited by Joscha Schmiedt