From: hobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Date: Thu, 3 May 2018 13:40:48 +0000 (+0000)
Subject: Don't need to add the codec2_native target twice.
X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=42ae7a21a5424fd83c7e92ba7f75b5ca46f26c77;p=freetel-svn-tracking.git

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
---

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)