Don't need to add the codec2_native target twice.
authorhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 3 May 2018 13:40:48 +0000 (13:40 +0000)
committerhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 3 May 2018 13:40:48 +0000 (13:40 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3563 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/CMakeLists.txt

index 5d62901312b045358c7f1d6ce6d58b26fda8f561..5d599274afd1b2f2fa8c5b9cfac7c792adbf6f73 100644 (file)
@@ -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)