Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
cd6d69a4
Commit
cd6d69a4
authored
Feb 06, 2014
by
Paul Bakker
Browse files
Fixed testing with out-of-source builds using cmake
parent
f2561b3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
cd6d69a4
...
...
@@ -22,6 +22,7 @@ Bugfix
statistics
* Fix buf in RSA PKCS#1 v1.5 "reversed" operations
* Threading in x509_crt depended on PTHREAD instead of generic
* Fixed testing with out-of-source builds using cmake
= PolarSSL 1.3.4 released on 2014-01-27
Features
...
...
tests/CMakeLists.txt
View file @
cd6d69a4
...
...
@@ -83,3 +83,25 @@ add_test_suite(version)
add_test_suite
(
xtea
)
add_test_suite
(
x509parse
)
add_test_suite
(
x509write
)
# Make data_files available in an out-of-source build
if
(
NOT
${
CMAKE_CURRENT_BINARY_DIR
}
STREQUAL
${
CMAKE_CURRENT_SOURCE_DIR
}
)
# Get OS dependent path to use in `execute_process`
file
(
TO_NATIVE_PATH
"
${
CMAKE_CURRENT_BINARY_DIR
}
/data_files"
link
)
file
(
TO_NATIVE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/data_files"
target
)
if
(
UNIX
)
set
(
command ln -s
${
target
}
${
link
}
)
else
()
set
(
command cmd.exe /c mklink
${
link
}
${
target
}
)
endif
()
execute_process
(
COMMAND
${
command
}
RESULT_VARIABLE result
ERROR_VARIABLE output
)
if
(
NOT
${
result
}
EQUAL 0
)
message
(
FATAL_ERROR
"Could not create symbolic link for:
${
target
}
-->
${
output
}
"
)
endif
()
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment