From 42ae7a21a5424fd83c7e92ba7f75b5ca46f26c77 Mon Sep 17 00:00:00 2001 From: hobbes1069 Date: Thu, 3 May 2018 13:40:48 +0000 Subject: [PATCH] Don't need to add the codec2_native target twice. git-svn-id: https://svn.code.sf.net/p/freetel/code@3563 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/src/CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/codec2-dev/src/CMakeLists.txt b/codec2-dev/src/CMakeLists.txt index 5d629013..5d599274 100644 --- a/codec2-dev/src/CMakeLists.txt +++ b/codec2-dev/src/CMakeLists.txt @@ -157,12 +157,7 @@ add_custom_command( # when crosscompiling we need a native executable if(CMAKE_CROSSCOMPILING) - include(ExternalProject) - ExternalProject_Add(codec2_native - SOURCE_DIR ${CMAKE_SOURCE_DIR} - BUILD_COMMAND $(MAKE) generate_wideband_map - INSTALL_COMMAND ${CMAKE_COMMAND} -E copy src/generate_wideband_map ${CMAKE_CURRENT_BINARY_DIR} - ) + # Native executable already built above. add_executable(generate_wideband_map IMPORTED) set_target_properties(generate_wideband_map PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/generate_wideband_map) -- 2.25.1