<commit_before>


#########################################################################
# Control whether libraries are shared or static.
option(IDYNTREE_SHARED_LIBRARY "Compile iDynTree as a shared library" TRUE)
set(BUILD_SHARED_LIBS ${IDYNTREE_SHARED_LIBRARY})


#########################################################################
# Use position indipendent code
set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)

#########################################################################
# Turn on testing.
option(IDYNTREE_COMPILE_TESTS "Compile iDynTree tests" FALSE)
if(IDYNTREE_COMPILE_TESTS)
   enable_testing()
endif()

#########################################################################
# Turn on bindings compilation.
option(IDYNTREE_COMPILE_BINDINGS "Compile iDynTree bindings" FALSE)


#########################################################################
# Deal with RPATH
option(IDYNTREE_ENABLE_RPATH "Enable RPATH for the library" TRUE)
mark_as_advanced(IDYNTREE_ENABLE_RPATH)

#########################################################################
# Enable/disable dependencies

option(IDYNTREE_ENABLE_SYMORO_PAR "Enable support for SyMoRo par format" TRUE)
option(IDYNTREE_USES_ICUB_MAIN  "Compiled iDynTree with icub-main dependencies (for iKin and skinDynLib helper functions and tools)" TRUE)
option(IDYNTREE_USES_INTERNAL_URDFDOM "Compile iDynTree with an internal copy of urdfdom patched to avoid Boost dependencies" FALSE)
if(IDYNTREE_USES_INTERNAL_URDFDOM)
    add_definitions(-DURDF_USE_PLAIN_POINTERS)
    add_definitions(-DIDYNTREE_USE_INTERNAL_URDFDOM)
endif()<commit_msg>On Microsoft Visual Studio, used internal urdfdom by default<commit_after>


#########################################################################
# Control whether libraries are shared or static.
option(IDYNTREE_SHARED_LIBRARY "Compile iDynTree as a shared library" TRUE)
set(BUILD_SHARED_LIBS ${IDYNTREE_SHARED_LIBRARY})


#########################################################################
# Use position indipendent code
set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)

#########################################################################
# Turn on testing.
option(IDYNTREE_COMPILE_TESTS "Compile iDynTree tests" FALSE)
if(IDYNTREE_COMPILE_TESTS)
   enable_testing()
endif()

#########################################################################
# Turn on bindings compilation.
option(IDYNTREE_COMPILE_BINDINGS "Compile iDynTree bindings" FALSE)


#########################################################################
# Deal with RPATH
option(IDYNTREE_ENABLE_RPATH "Enable RPATH for the library" TRUE)
mark_as_advanced(IDYNTREE_ENABLE_RPATH)

#########################################################################
# Enable/disable dependencies

option(IDYNTREE_ENABLE_SYMORO_PAR "Enable support for SyMoRo par format" TRUE)
option(IDYNTREE_USES_ICUB_MAIN  "Compiled iDynTree with icub-main dependencies (for iKin and skinDynLib helper functions and tools)" TRUE)
if( MSVC )
option(IDYNTREE_USES_INTERNAL_URDFDOM "Compile iDynTree with an internal copy of urdfdom patched to avoid Boost dependencies" TRUE)
else()
option(IDYNTREE_USES_INTERNAL_URDFDOM "Compile iDynTree with an internal copy of urdfdom patched to avoid Boost dependencies" FALSE)
endif()

if(IDYNTREE_USES_INTERNAL_URDFDOM)
    add_definitions(-DURDF_USE_PLAIN_POINTERS)
    add_definitions(-DIDYNTREE_USE_INTERNAL_URDFDOM)
endif()
{'fraction_non_alphanumeric': 0.29813845258871435, 'fraction_numerical': 0.0, 'mean_word_length': 10.093548387096774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '488518', 'n_tokens_mistral': 1001, 'n_tokens_neox': 959, 'n_words': 226}