########################################### ## For building with the rest of OpenSim ## ########################################### cmake_minimum_required(VERSION 2.6) # Define project PROJECT (LocomotorPrimitives) INCLUDE_DIRECTORIES(${OpenSim_SOURCE_DIR} ${OpenSim_SOURCE_DIR}/Vendors) SET(OPENSIM_INSTALL_DIR $ENV{OPENSIM_HOME} CACHE PATH "Top-level directory of OpenSim install") # Change name of build target SET(TARGET LocomotorPrimitives CACHE TYPE STRING) # Identify the cpp file(s) that were to be built FILE(GLOB SOURCE_FILES *.h *.cpp) SET(SOURCE ${SOURCE_FILES}) # To add Debug feature add ";Debug" after Release on the line below SET(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release" CACHE STRING "Semicolon separated list of supported configuration types, only supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything else will be ignored." FORCE ) # Location of headers SET(SIMTK_HEADERS_DIR ${OPENSIM_INSTALL_DIR}/sdk/include/SimTK/include) SET(OPENSIM_HEADERS_DIR ${OPENSIM_INSTALL_DIR}/sdk/include) INCLUDE_DIRECTORIES(${SIMTK_HEADERS_DIR} ${OPENSIM_HEADERS_DIR}) # Libraries and dlls SET(OPENSIM_LIBS_DIR ${OPENSIM_INSTALL_DIR}/sdk/lib) SET(OPENSIM_LIBS_DIR ${OPENSIM_INSTALL_DIR}/lib) SET(OPENSIM_DLLS_DIR ${OPENSIM_INSTALL_DIR}/bin) LINK_DIRECTORIES(${OPENSIM_LIBS_DIR} ${OPENSIM_DLLS_DIR}) # Namespace SET(NameSpace "OpenSim_" CACHE STRING "Prefix for simtk lib names, includes trailing '_'. Leave empty to use stock SimTK libraries.") MARK_AS_ADVANCED(NameSpace) ADD_EXECUTABLE(${TARGET} ${SOURCE}) TARGET_LINK_LIBRARIES(${TARGET} debug osimSimulation_d optimized osimSimulation debug osimActuators_d optimized osimActuators debug osimCommon_d optimized osimCommon debug osimAnalyses_d optimized osimAnalyses debug osimTools_d optimized osimTools debug ${NameSpace}SimTKcommon_d optimized ${NameSpace}SimTKcommon debug ${NameSpace}SimTKmath_d optimized ${NameSpace}SimTKmath debug ${NameSpace}SimTKsimbody_d optimized ${NameSpace}SimTKsimbody SimTKlapack ${PLATFORM_LIBS} ) IF(WIN32) SET(PLATFORM_LIBS pthreadVC2) ELSE (WIN32) SET(NameSpace "") IF(APPLE) SET(PLATFORM_LIBS SimTKAtlas) ELSE(APPLE) SET(PLTAFORM_LIBS SimTKAtlas_Lin_generic) ENDIF(APPLE) ENDIF (WIN32) # This block copies the additional files into the running directory # For example vtp, obj files. Add to the end for more extentions FILE(GLOB DATA_FILES *.vtp *.obj) FOREACH (dataFile ${DATA_FILES}) ADD_CUSTOM_COMMAND( TARGET ${TARGET} COMMAND ${CMAKE_COMMAND} ARGS -E copy ${dataFile} ${OpenSimTugOfWar_BINARY_DIR}) ENDFOREACH (dataFile) MARK_AS_ADVANCED(CMAKE_INSTALL_PREFIX) MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH) MARK_AS_ADVANCED(LIBRARY_OUTPUT_PATH) it.cgi/linux/net-next.git/tree/Documentation?id=0a4824bf8f8b88ba62c3c6e01608e8bfc2a99a17'>Documentation
ModeNameSize
space:
mode:
authorshamir rabinovitch <shamir.rabinovitch@oracle.com>2016-10-27 05:46:38 -0400
committerDavid S. Miller <davem@davemloft.net>2016-10-29 15:55:57 -0400
commitff57087f314be8d458dca6bdd41be5b4236482a0 (patch)
tree4c156476b3e9b669c48427ba264b5a3a8f9aacb8
parent880b583ce10886578f840cf4e7205826ea9165df (diff)
rds: debug messages are enabled by default
rds use Kconfig option called "RDS_DEBUG" to enable rds debug messages. This option cause the rds Makefile to add -DDEBUG to the rds gcc command line. When CONFIG_DYNAMIC_DEBUG is enabled, the "DEBUG" macro is used by include/linux/dynamic_debug.h to decide if dynamic debug prints should be sent by default to the kernel log. rds should not enable this macro for production builds. rds dynamic debug work as expected follow this fix. Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Reviewed-by: Wengang Wang <wen.gang.wang@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat