Remove CMAKE_HOST_ references

CMAKE_HOST_ describes the host system not the target. For cross compilation to work the actual target system should be used for making decisions in CMake.
This commit is contained in:
Don
2018-03-16 14:59:53 -07:00
parent 639a6629ae
commit 09590953d0
5 changed files with 19 additions and 19 deletions

View File

@@ -19,15 +19,15 @@ set(
tls_verify.c
)
if(CMAKE_HOST_WIN32)
set(
TLS_SRC
${TLS_SRC}
compat/ftruncate.c
compat/getuid.c
compat/pread.c
compat/pwrite.c
)
if(WIN32)
set(
TLS_SRC
${TLS_SRC}
compat/ftruncate.c
compat/getuid.c
compat/pread.c
compat/pwrite.c
)
endif()
if(NOT "${OPENSSLDIR}" STREQUAL "")