Skip to content

Commit

Permalink
[vcpkg-cmake] Fix usage of CMAKE_CXX_COMPILER_TARGET (#24101)
Browse files Browse the repository at this point in the history
* Guard CMAKE_CXX_COMPILER_TARGET

* Update versions
  • Loading branch information
dg0yt committed Apr 18, 2022
1 parent d35a986 commit 97b723c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ports/vcpkg-cmake/cmake_get_vars/CMakeLists.txt
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion ports/vcpkg-cmake/vcpkg.json
@@ -1,5 +1,5 @@
{
"name": "vcpkg-cmake",
"version-date": "2022-04-07",
"version-date": "2022-04-12",
"license": "MIT"
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Expand Up @@ -7297,7 +7297,7 @@
"port-version": 1
},
"vcpkg-cmake": {
"baseline": "2022-04-07",
"baseline": "2022-04-12",
"port-version": 0
},
"vcpkg-cmake-config": {
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/vcpkg-cmake.json
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ef4a9463f802c1cd6f8b31e560529aeaee0faff4",
"version-date": "2022-04-12",
"port-version": 0
},
{
"git-tree": "3dcb01563c0de941013579456d19ce5b0bd08a6e",
"version-date": "2022-04-07",
Expand Down

0 comments on commit 97b723c

Please sign in to comment.