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

@@ -55,12 +55,12 @@ set(
x509.c
)
if(CMAKE_HOST_UNIX)
if(UNIX)
set(OPENSSL_SRC ${OPENSSL_SRC} apps_posix.c)
set(OPENSSL_SRC ${OPENSSL_SRC} certhash.c)
endif()
if(CMAKE_HOST_WIN32)
if(WIN32)
set(OPENSSL_SRC ${OPENSSL_SRC} apps_win.c)
set(OPENSSL_SRC ${OPENSSL_SRC} certhash_win.c)
set(OPENSSL_SRC ${OPENSSL_SRC} compat/poll_win.c)