Correct check for WIN32 in cmake files for programs
Condition was checking for Visual Studio, not use of WIN32 Signed-off-by: Simon Butcher <simon.butcher@arm.com>
This commit is contained in:
parent
34b8d83a22
commit
33425de128
5 changed files with 19 additions and 10 deletions
|
@ -1,6 +1,10 @@
|
||||||
if(MSVC)
|
set(libs
|
||||||
|
mbedtls
|
||||||
|
)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
set(libs ${libs} bcrypt)
|
set(libs ${libs} bcrypt)
|
||||||
endif()
|
endif(WIN32)
|
||||||
|
|
||||||
set(executables_mbedtls
|
set(executables_mbedtls
|
||||||
dh_client
|
dh_client
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
if(MSVC)
|
set(libs
|
||||||
|
mbedtls
|
||||||
|
)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
set(libs ${libs} bcrypt)
|
set(libs ${libs} bcrypt)
|
||||||
endif()
|
endif(WIN32)
|
||||||
|
|
||||||
set(executables
|
set(executables
|
||||||
gen_entropy
|
gen_entropy
|
||||||
|
|
|
@ -5,9 +5,9 @@ set(libs
|
||||||
${mbedtls_target}
|
${mbedtls_target}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(MSVC)
|
if(WIN32)
|
||||||
set(libs ${libs} bcrypt)
|
set(libs ${libs} bcrypt)
|
||||||
endif()
|
endif(WIN32)
|
||||||
|
|
||||||
set(executables
|
set(executables
|
||||||
dtls_client
|
dtls_client
|
||||||
|
|
|
@ -2,9 +2,9 @@ set(libs
|
||||||
${mbedtls_target}
|
${mbedtls_target}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(MSVC)
|
if(WIN32)
|
||||||
set(libs ${libs} bcrypt)
|
set(libs ${libs} bcrypt)
|
||||||
endif()
|
endif(WIN32)
|
||||||
|
|
||||||
set(executables_libs
|
set(executables_libs
|
||||||
query_included_headers
|
query_included_headers
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
set(libs
|
set(libs
|
||||||
${mbedx509_target}
|
${mbedx509_target}
|
||||||
)
|
)
|
||||||
if(MSVC)
|
|
||||||
|
if(WIN32)
|
||||||
set(libs ${libs} bcrypt)
|
set(libs ${libs} bcrypt)
|
||||||
endif()
|
endif(WIN32)
|
||||||
|
|
||||||
set(executables
|
set(executables
|
||||||
cert_app
|
cert_app
|
||||||
|
|
Loading…
Reference in a new issue