build: cmake cross-compilation fixes 77/27577/2
authorDamjan Marion <damarion@cisco.com>
Tue, 16 Jun 2020 14:05:12 +0000 (16:05 +0200)
committerMatthew Smith <mgsmith@netgate.com>
Wed, 17 Jun 2020 00:46:35 +0000 (00:46 +0000)
Type: fix
Change-Id: I40337c208375b74b4dc3c35102c5e66a6e4568e8
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/cmake/CMakeLists.txt
src/pkg/CMakeLists.txt

index fdee40c..74cd385 100644 (file)
@@ -21,7 +21,7 @@ install(
   VPPConfig.cmake
 
   DESTINATION
-  lib/cmake/vpp
+  ${VPP_LIBRARY_DIR}/cmake/vpp
 
   COMPONENT vpp-dev
 )
index a5a0ffe..0e4b6db 100644 (file)
 # 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}")