Преглед изворни кода

Fix build with shared libraries, regression from 10cf08f

Drop the extra CIP library argument in target_link_libraries() and
reorder the remaining libraries so linking works both for static
and shared libraries.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Joachim Wiberg пре 3 година
родитељ
комит
654d92e7fa
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      source/src/ports/POSIX/CMakeLists.txt

+ 1 - 1
source/src/ports/POSIX/CMakeLists.txt

@@ -49,7 +49,7 @@ endif()
 
 if( NOT OpENer_TESTS)
   add_executable(OpENer main.c)
-  target_link_libraries( OpENer CIP Utils SAMPLE_APP ENET_ENCAP NVDATA PLATFORM_GENERIC ${OpENer_PLATFORM}PLATFORM ${PLATFORM_SPEC_LIBS} CIP rt cap pthread)
+  target_link_libraries( OpENer PLATFORM_GENERIC ${OpENer_PLATFORM}PLATFORM ${PLATFORM_SPEC_LIBS} CIP Utils SAMPLE_APP ENET_ENCAP NVDATA rt cap pthread)
 endif()
 
 # Add additional CIP Objects