Fix cross compilation (#681)

* Fix Appveyor build
This commit is contained in:
Nikita Karpey 2020-03-26 00:41:18 +05:00 committed by GitHub
parent d24b20f7d2
commit ff31de95d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@ ExternalProject_Add(cpu_features
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/cpu_features-src"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/cpu_features-build"
CMAKE_ARGS
-DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
-DCMAKE_SYSTEM_PROCESSOR=${CMAKE_SYSTEM_PROCESSOR}
-DCMAKE_RC_COMPILER="${CMAKE_RC_COMPILER}"
-DCMAKE_POLICY_DEFAULT_CMP0063=NEW
-DCMAKE_C_VISIBILITY_PRESET=hidden
-DCMAKE_POSITION_INDEPENDENT_CODE=ON