From 5857daf4326e647f29b31e9f3ca9b794a447d5e4 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 16 Jun 2020 16:05:12 +0200 Subject: build: cmake cross-compilation fixes Type: fix Change-Id: I40337c208375b74b4dc3c35102c5e66a6e4568e8 Signed-off-by: Damjan Marion --- src/cmake/CMakeLists.txt | 2 +- src/pkg/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmake/CMakeLists.txt b/src/cmake/CMakeLists.txt index fdee40c61c1..74cd385a1ce 100644 --- a/src/cmake/CMakeLists.txt +++ b/src/cmake/CMakeLists.txt @@ -21,7 +21,7 @@ install( VPPConfig.cmake DESTINATION - lib/cmake/vpp + ${VPP_LIBRARY_DIR}/cmake/vpp COMPONENT vpp-dev ) diff --git a/src/pkg/CMakeLists.txt b/src/pkg/CMakeLists.txt index a5a0ffe5827..0e4b6dbcce7 100644 --- a/src/pkg/CMakeLists.txt +++ b/src/pkg/CMakeLists.txt @@ -11,6 +11,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +if(CMAKE_CROSSCOMPILING) + return() +endif() + get_cmake_property(VPP_COMPONENTS COMPONENTS) string(REPLACE ";" " " VPP_COMPONENTS "${VPP_COMPONENTS}") -- cgit 1.2.3-korg