aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmake/CMakeLists.txt2
-rw-r--r--src/pkg/CMakeLists.txt4
2 files changed, 5 insertions, 1 deletions
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}")