From 4894ef0424a5e07e64a21d8f3c3860f8650ebb55 Mon Sep 17 00:00:00 2001 From: beaglejoe Date: Sat, 22 Aug 2015 16:57:27 +0000 Subject: [PATCH] Fix for Ticket #923 git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6085 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: bd86e06f166d59cdb8c461fcd1723742656484b4 Former-commit-id: 797bb3e7bce5b91c67538031e24ba1854d7cfe20 --- cmake/robot.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake/robot.cmake b/cmake/robot.cmake index d70f53a51..4b3ab7d15 100644 --- a/cmake/robot.cmake +++ b/cmake/robot.cmake @@ -152,7 +152,7 @@ MACRO(ROBOT_MODULE) SET(CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:msvcrt.lib") ENDIF(MSVC) - # The robot module is actually a shared library. + # The robot module is actually a module. SD_ADD_LIBRARY(${RBM_NAME} ROBOT ${RBM_SOURCES}) # Customize shared library versions. @@ -180,7 +180,7 @@ MACRO(ROBOT_MODULE) IF(NOT RUNTIME_OUTPUT_DIRECTORY) GET_TARGET_PROPERTY(MODLOC ${RBM_NAME} LIBRARY_OUTPUT_DIRECTORY) ENDIF() - SET(MODLOC "${MODLOC}/${RBM_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}") + SET(MODLOC "${MODLOC}/${RBM_NAME}${CMAKE_SHARED_MODULE_SUFFIX}") ELSE(WIN32) GET_TARGET_PROPERTY(MODLOC ${RBM_NAME} LOCATION) ENDIF(WIN32) @@ -188,11 +188,11 @@ MACRO(ROBOT_MODULE) FOREACH(CLONENAME ${RBM_CLONENAMES}) SET(CLONE_MODDIR "${CMAKE_BINARY_DIR}/${SD_LIBDIR}/drivers/${CLONENAME}") - SET(CLONE_MODLOC "${CLONE_MODDIR}/${CLONENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}") + SET(CLONE_MODLOC "${CLONE_MODDIR}/${CLONENAME}${CMAKE_SHARED_MODULE_SUFFIX}") IF(FALSE) #IF(UNIX) # Might not work with GCC 4.5 or + (see above) ADD_CUSTOM_COMMAND(TARGET ${RBM_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E echo "Cloning ${RBM_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX} into ${CLONE_MODLOC}.${RBM_VERSION}" + COMMAND ${CMAKE_COMMAND} -E echo "Cloning ${RBM_NAME}${CMAKE_SHARED_MODULE_SUFFIX} into ${CLONE_MODLOC}.${RBM_VERSION}" COMMAND ${CMAKE_COMMAND} -E make_directory "${CLONE_MODDIR}" COMMAND ${CMAKE_COMMAND} -E copy_if_different ${MODLOC} ${CLONE_MODLOC}.${RBM_VERSION}) ADD_CUSTOM_COMMAND(TARGET ${RBM_NAME} POST_BUILD @@ -204,7 +204,7 @@ MACRO(ROBOT_MODULE) ADD_CUSTOM_COMMAND(TARGET ${RBM_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E echo "Creating directory ${CLONE_MODDIR}" COMMAND ${CMAKE_COMMAND} -E make_directory "${CLONE_MODDIR}" - COMMAND ${CMAKE_COMMAND} -E echo "Cloning ${RBM_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}=${MODLOC} into ${CLONE_MODLOC}" + COMMAND ${CMAKE_COMMAND} -E echo "Cloning ${RBM_NAME}${CMAKE_SHARED_MODULE_SUFFIX}=${MODLOC} into ${CLONE_MODLOC}" COMMAND ${CMAKE_COMMAND} -E copy_if_different ${MODLOC} ${CLONE_MODLOC}) SD_INSTALL_FILES(LIB drivers/${CLONENAME} FILES ${CLONE_MODLOC})