From 5ae8d4f9dd2fa8a4eb5a814f3e8e591652e9b485 Mon Sep 17 00:00:00 2001 From: 3djc Date: Mon, 19 Aug 2019 12:57:11 +0200 Subject: [PATCH] fix simus missing for Mac and Linux packages --- companion/src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/companion/src/CMakeLists.txt b/companion/src/CMakeLists.txt index c367a3d96..d5fd9976d 100644 --- a/companion/src/CMakeLists.txt +++ b/companion/src/CMakeLists.txt @@ -329,7 +329,11 @@ target_link_libraries(${SIMULATOR_NAME} PRIVATE ${CPN_COMMON_LIB}) ############# Install #################### # Generate list of simulator plugins, used by all platforms -file(GLOB simulator_plugins "${CMAKE_BINARY_DIR}/Release/*opentx-*simulator${CMAKE_SHARED_LIBRARY_SUFFIX}") +if(WIN32) + file(GLOB simulator_plugins "${CMAKE_BINARY_DIR}/Release/*opentx-*simulator${CMAKE_SHARED_LIBRARY_SUFFIX}") +else() + file(GLOB simulator_plugins "${CMAKE_BINARY_DIR}/*opentx-*simulator${CMAKE_SHARED_LIBRARY_SUFFIX}") +endif() # the current flavour is not automatically added if build in the current cmake iteration, so always # add its library name to be sure