build: cmake cross-compilation fixes

Type: fix
Change-Id: I40337c208375b74b4dc3c35102c5e66a6e4568e8
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2020-06-16 16:05:12 +02:00
committed by Matthew Smith
parent ae45d47899
commit 5857daf432
2 changed files with 5 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ install(
VPPConfig.cmake
DESTINATION
lib/cmake/vpp
${VPP_LIBRARY_DIR}/cmake/vpp
COMPONENT vpp-dev
)

View File

@@ -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}")