Mklink issue when building on Windows #103
Labels
No labels
api-spec
bug
CLA requested
CLA valid
compliance
DO NOT MERGE
duplicate
enhancement
feature branch
good first issue
HEADER FORMATTING ISSUE
help wanted
Information
invalid
Jira status: AWAITING REVIEW
Jira status: CLOSED
Jira status: DONE
Jira status: IN PROGRESS
Jira status: IN REVIEW
Jira status: OPEN
Jira status: REOPENED
Jira status: RESOLVED
mirrored
mirror internally
needs: backports
needs: ci
needs: design review
needs: preceding PR
needs: review
needs: work
notabug
open for community contribution
Product Backlog
question
ready for merge
security
stale
type: bug
type: enhancement
type: question
web pages
wontfix
writing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-ARMmbed/mbed-crypto#103
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When building with CMake on a Win 10 machine, creation of links using mklink (see CMakeLists.txt) doesn't always work.
This is a similar issue to https://github.com/ARMmbed/mbedtls/issues/1496 reported for mbed-tls.
The root cause is: cmd.exe does allays only accept
\as directory separator, butfile(TO_NATIVE_PATH )istarget host systemspecific and under some conditions will return PATHs with/.In addition on some of our machines CMAKE_UNIX_HOST is set while
lnis not available.So I suggest checking if
CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows"is true and to use string manipulation to convert directory separators and drive letters (i.e./c/foo/bar->c:\foo\barand/cygdrive/c/foo/bar->c:\foo\bar).Howto reproduce:
Assumptions:
Steps:
cd <mbed-crypto path>mkdir build; cd buildcmake -DCMAKE_C_COMPILER=arm-none-eabi-gcc -DCMAKE_C_COMPILER_WORKS=True -G"Unix Makefiles" ..Result:
Issue request type
Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-760