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:
@@ -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 "")
|
||||
|
Reference in New Issue
Block a user