File tree Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
1
if (NOT TARGET_TRIPLET STREQUAL _HOST_TRIPLET )
2
- message (WARNING "vcpkg-cmake-module is a host-only port; please mark it as a host port in your dependencies." )
2
+ message (WARNING "${PORT} is a host-only port; please mark it as a host port in your dependencies." )
3
3
endif ()
4
4
5
5
file (INSTALL
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vcpkg-cmake-module" ,
3
3
"version-date" : " 2023-10-11" ,
4
- "port-version" : 1 ,
4
+ "port-version" : 2 ,
5
5
"license" : " MIT"
6
6
}
Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ function(vcpkg_cmake_module)
47
47
endif ()
48
48
49
49
if (arg_DIRECTORY_LIST )
50
+ # Delete tail "/"
51
+ if (arg_DIRECTORY_LIST MATCHES [[(/$)]] )
52
+ string (REGEX REPLACE [[(/$)]] "" arg_DIRECTORY_LIST ${arg_DIRECTORY_LIST} )
53
+ endif ()
54
+
50
55
foreach (_dir "${arg_DIRECTORY_LIST} " )
51
56
if (NOT IS_DIRECTORY ${_dir} )
52
57
message (
@@ -68,15 +73,15 @@ function(vcpkg_cmake_module)
68
73
LIST_DIRECTORIES ON
69
74
RELATIVE "${_dir} "
70
75
"${_dir} /*" )
76
+
71
77
list (FILTER _dir_itmes EXCLUDE REGEX [[^\.]] )
72
- message ( STATUS ${_dir_itmes} )
78
+
73
79
foreach (_item ${_dir_itmes} )
74
80
if (IS_DIRECTORY "${_dir} /${_item} " )
75
81
string (
76
82
APPEND
77
83
_export_in_vcpkg_cmake_wrapper
78
- "${_export_in_vcpkg_cmake_wrapper} list(APPEND CMAKE_PREFIX_PATH "
79
- "\$ {CMAKE_CURRENT_LIST_DIR}/${_modules_dir_path} /${_dir_name} /${_item} )\n "
84
+ "list(APPEND CMAKE_PREFIX_PATH \$ {CMAKE_CURRENT_LIST_DIR}/${_modules_path} /${_dir_name} /${_item} )\n "
80
85
)
81
86
endif ()
82
87
endforeach ()
Original file line number Diff line number Diff line change 6
6
},
7
7
"vcpkg-cmake-module" : {
8
8
"baseline" : " 2023-10-11" ,
9
- "port-version" : 1
9
+ "port-version" : 2
10
10
}
11
11
}
12
12
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"versions" : [
3
+ {
4
+ "version-date" : " 2023-10-11" ,
5
+ "git-tree" : " b070717c7a2a4af190f9be0622c30c578d8026ef" ,
6
+ "port-version" : 2
7
+ },
3
8
{
4
9
"version-date" : " 2023-10-11" ,
5
10
"git-tree" : " 852db71c3ded39767390a021f35ff897a16671d9" ,
You can’t perform that action at this time.
0 commit comments