4
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
5
6
6
cmake_minimum_required (VERSION 3.13)
7
+
8
+ cmake_policy (SET CMP0177 OLD)
9
+ cmake_policy (SET CMP0167 NEW)
10
+
7
11
project (vsomeip)
8
12
9
13
set (VSOMEIP_NAME vsomeip3)
@@ -108,6 +112,7 @@ add_library(DL_INTERFACE INTERFACE IMPORTED)
108
112
find_package (
109
113
Boost 1.66 REQUIRED
110
114
COMPONENTS system thread filesystem
115
+ CONFIG
111
116
)
112
117
113
118
include (CMakeDependentOption)
@@ -210,7 +215,7 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "QNX")
210
215
# QNX specific socket lib
211
216
set (VSOMEIP_SOCKET_LIB
212
217
"socket"
213
- CACHE "Default socket library for QNX" STRING
218
+ CACHE STRING "Default socket library for QNX"
214
219
)
215
220
target_link_libraries (RT_INTERFACE INTERFACE $<$<PLATFORM_ID:QNX>:${VSOMEIP_SOCKET_LIB} >)
216
221
@@ -673,6 +678,7 @@ message("Predefined wait times for internal communication ports (TCP):\
673
678
# ######################################################################################################################
674
679
# Installation
675
680
# ######################################################################################################################
681
+
676
682
set (INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /interface/vsomeip" )
677
683
678
684
file (
@@ -686,13 +692,20 @@ list(SORT vsomeip_INCLUDE)
686
692
687
693
foreach (file ${vsomeip_INCLUDE} )
688
694
get_filename_component (dir ${file} DIRECTORY )
695
+ # The destination contains non-normalized paths, this is deprecated. Until
696
+ # CMake 3.23 is the minimum version and FILE_SETs can be used, we're relying
697
+ # on using the old CMP0177 policy.
689
698
install (
690
699
FILES "${INCLUDE_PATH} /${file} "
691
700
DESTINATION "${INSTALL_INCLUDE_DIR} /vsomeip/${dir} "
692
701
COMPONENT dev
693
702
)
694
703
endforeach ()
695
704
705
+ unset (INCLUDE_PATH )
706
+ unset (vsomeip_INCLUDE)
707
+ unset (file)
708
+
696
709
install (
697
710
TARGETS vsomeip3
698
711
# IMPORTANT: Add the vsomeip library to the "export-set"
0 commit comments