[vcpkg-cmake] Fix usage of CMAKE_CXX_COMPILER_TARGET (#24101)

* Guard CMAKE_CXX_COMPILER_TARGET

* Update versions
This commit is contained in:
Kai Pastor 2022-04-19 01:45:15 +02:00 committed by GitHub
parent d35a986b57
commit 97b723c346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -111,7 +111,7 @@ endif()
if(CMAKE_CXX_COMPILER_TARGET)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
string(APPEND EXTRA_FLAGS " \"${CMAKE_CXX_COMPILE_OPTIONS_TARGET}${CMAKE_CXX_COMPILER_TARGET}\"")
else()
elseif(CMAKE_CXX_COMPILE_OPTIONS_TARGET)
string(APPEND EXTRA_FLAGS " ${CMAKE_CXX_COMPILE_OPTIONS_TARGET} \"${CMAKE_CXX_COMPILER_TARGET}\"")
endif()
endif()

View File

@ -1,5 +1,5 @@
{
"name": "vcpkg-cmake",
"version-date": "2022-04-07",
"version-date": "2022-04-12",
"license": "MIT"
}

View File

@ -7297,7 +7297,7 @@
"port-version": 1
},
"vcpkg-cmake": {
"baseline": "2022-04-07",
"baseline": "2022-04-12",
"port-version": 0
},
"vcpkg-cmake-config": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ef4a9463f802c1cd6f8b31e560529aeaee0faff4",
"version-date": "2022-04-12",
"port-version": 0
},
{
"git-tree": "3dcb01563c0de941013579456d19ce5b0bd08a6e",
"version-date": "2022-04-07",