mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 07:09:00 +08:00
[vcpkg-cmake] Fix usage of CMAKE_CXX_COMPILER_TARGET (#24101)
* Guard CMAKE_CXX_COMPILER_TARGET * Update versions
This commit is contained in:
parent
d35a986b57
commit
97b723c346
@ -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()
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"version-date": "2022-04-07",
|
||||
"version-date": "2022-04-12",
|
||||
"license": "MIT"
|
||||
}
|
||||
|
@ -7297,7 +7297,7 @@
|
||||
"port-version": 1
|
||||
},
|
||||
"vcpkg-cmake": {
|
||||
"baseline": "2022-04-07",
|
||||
"baseline": "2022-04-12",
|
||||
"port-version": 0
|
||||
},
|
||||
"vcpkg-cmake-config": {
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ef4a9463f802c1cd6f8b31e560529aeaee0faff4",
|
||||
"version-date": "2022-04-12",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "3dcb01563c0de941013579456d19ce5b0bd08a6e",
|
||||
"version-date": "2022-04-07",
|
||||
|
Loading…
Reference in New Issue
Block a user