mirror of
https://github.com/curl/curl.git
synced 2026-07-26 13:57:57 +03:00
cmake: repair cross compiling
It cannot *run* code for testing purposes when cross-compiling. Closes #11130
This commit is contained in:
parent
b78ca50cb3
commit
446061e6cb
1 changed files with 2 additions and 2 deletions
|
|
@ -131,8 +131,8 @@ if(WIN32)
|
|||
set_target_properties(${LIB_NAME} PROPERTIES IMPORT_SUFFIX "_imp.lib")
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
# on not-Windows, check for writable argv[]
|
||||
elseif(NOT CMAKE_CROSSCOMPILING)
|
||||
# on not-Windows and not-crosscompiling, check for writable argv[]
|
||||
include(CheckCSourceRuns)
|
||||
check_c_source_runs("
|
||||
int main(int argc, char **argv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue