<commit_before>######################################################################
## CMakeLists.txt ---
## This file is part of the G+Smo library. 
##
## Author: <NAME> 
## Copyright (C) 2012 - 2015 RICAM-Linz.
######################################################################

#include (GenerateExportHeader)

#include(cotire)
#cotire(${${PROJECT_NAME}_MODULES})

## #################################################################
## Add library targets
## #################################################################

#message("Using ${${PROJECT_NAME}_EXTENSIONS}")
#message("Using ${${PROJECT_NAME}_MODULES}")
#message("Using ${${PROJECT_NAME}_SOURCES}")

if(GISMO_BUILD_LIB)

#if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xGNU")
#  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-implicit-templates")
#endif()

if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
 set(${PROJECT_NAME}_SOURCES ${${PROJECT_NAME}_SOURCES} 
     "${gismo_SOURCE_DIR}/src/misc/gsDllMain.cpp")
endif()

#add_library(${PROJECT_NAME} ${LIB_TYPE}
#           ${${PROJECT_NAME}_MODULES}
#           ${${PROJECT_NAME}_EXTENSIONS}
#           GENERATE_EXPORT_HEADER( ${PROJECT_NAME}
#           BASE_NAME ${PROJECT_NAME}
#           EXPORT_MACRO_NAME ${PROJECT_NAME}_EXPORTS
#           EXPORT_FILE_NAME gsExport.h
#           STATIC_DEFINE GISMO_BUILT_STATIC_LIB
#	   )
#
#    GENERATE_EXPORT_HEADER(${PROJECT_NAME}_obj
#    #BASE_NAME ${PROJECT_NAME}_obj
#    #EXPORT_MACRO_NAME ${PROJECT_NAME}_obj_EXPORTS
#    EXPORT_FILE_NAME gsExport.h
#    #STATIC_DEFINE GISMO_BUILT_STATIC_LIB
#    )

  add_library(${PROJECT_NAME} SHARED
    ${${PROJECT_NAME}_MODULES}
    ${${PROJECT_NAME}_SOURCES}
    ${${PROJECT_NAME}_EXTENSIONS}
    )

  set_target_properties(${PROJECT_NAME} PROPERTIES 
  PUBLIC_HEADER "${PROJECT_SOURCE_DIR}/src/${PROJECT_NAME}.h" 
  POSITION_INDEPENDENT_CODE ON
  #COMPILE_DEFINITIONS ${PROJECT_NAME}_EXPORTS # Used for DLL exporting (defined by default by CMake)
  FOLDER "G+Smo libraries"
  )

  if (GISMO_WITH_ONURBS AND "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" )
    target_link_libraries(${PROJECT_NAME} Rpcrt4)
  endif()

  if (GISMO_WITH_PSOLID)
    target_link_libraries(${PROJECT_NAME} ${PARASOLID_LIBRARY})
  endif()

  if (GISMO_WITH_SUPERLU)
    target_link_libraries(${PROJECT_NAME} ${SUPERLU_LIBRARIES})
  endif()

  if (GISMO_WITH_PARDISO)
    target_link_libraries(${PROJECT_NAME} ${MKL_LIBRARIES})
  endif()

  if (GISMO_WITH_IPOPT)
    #find_package( LAPACK REQUIRED ) # Problematic on ubuntu
    #find_package( BLAS REQUIRED )
    #find_package( DL REQUIRED )
    find_program( patch_cmd "patch" REQUIRED )
    add_definitions( -DFORTRAN_INTEGER_TYPE=int -DHAVE_CMATH -DHAVE_CSTDIO)
    target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_IpOpt} dl )
    target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_Blas} )
    target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_Lapack} )
    target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_Mumps} )
    target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_Metis} )
  endif()

  IF (GISMO_EXTRA_DEBUG AND DBGHELP_FOUND) 
    TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${DBGHELP_LIBRARY}) 	
  ENDIF() 

 set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)

if( WIN32 ) # Copy the dll to the bin folder to allow executables to find it
    add_custom_command(
    TARGET ${PROJECT_NAME}
    POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/bin
    COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:${PROJECT_NAME}> ${CMAKE_BINARY_DIR}/bin
    COMMAND ${CMAKE_COMMAND} -E echo 'The file $<TARGET_FILE:${PROJECT_NAME}> is copied in the bin folder for convenience.' )<commit_msg>small fix in cmake<commit_after>######################################################################
## CMakeLists.txt ---
## This file is part of the G+Smo library. 
##
## Author: <NAME> 
## Copyright (C) 2012 - 2015 RICAM-Linz.
######################################################################

#include (GenerateExportHeader)

#include(cotire)
#cotire(${${PROJECT_NAME}_MODULES})

## #################################################################
## Add library targets
## #################################################################

#message("Using ${${PROJECT_NAME}_EXTENSIONS}")
#message("Using ${${PROJECT_NAME}_MODULES}")
#message("Using ${${PROJECT_NAME}_SOURCES}")

if(GISMO_BUILD_LIB)

#if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xGNU")
#  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-implicit-templates")
#endif()

if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
 set(${PROJECT_NAME}_SOURCES ${${PROJECT_NAME}_SOURCES} 
     "${gismo_SOURCE_DIR}/src/misc/gsDllMain.cpp")
endif()

#add_library(${PROJECT_NAME} ${LIB_TYPE}
#           ${${PROJECT_NAME}_MODULES}
#           ${${PROJECT_NAME}_EXTENSIONS}
#           GENERATE_EXPORT_HEADER( ${PROJECT_NAME}
#           BASE_NAME ${PROJECT_NAME}
#           EXPORT_MACRO_NAME ${PROJECT_NAME}_EXPORTS
#           EXPORT_FILE_NAME gsExport.h
#           STATIC_DEFINE GISMO_BUILT_STATIC_LIB
#	   )
#
#    GENERATE_EXPORT_HEADER(${PROJECT_NAME}_obj
#    #BASE_NAME ${PROJECT_NAME}_obj
#    #EXPORT_MACRO_NAME ${PROJECT_NAME}_obj_EXPORTS
#    EXPORT_FILE_NAME gsExport.h
#    #STATIC_DEFINE GISMO_BUILT_STATIC_LIB
#    )

  add_library(${PROJECT_NAME} SHARED
    ${${PROJECT_NAME}_MODULES}
    ${${PROJECT_NAME}_SOURCES}
    ${${PROJECT_NAME}_EXTENSIONS}
    )

  set_target_properties(${PROJECT_NAME} PROPERTIES 
  PUBLIC_HEADER "${PROJECT_SOURCE_DIR}/src/${PROJECT_NAME}.h" 
  POSITION_INDEPENDENT_CODE ON
  #COMPILE_DEFINITIONS ${PROJECT_NAME}_EXPORTS # Used for DLL exporting (defined by default by CMake)
  FOLDER "G+Smo libraries"
  )

  if (GISMO_WITH_ONURBS AND "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" )
    target_link_libraries(${PROJECT_NAME} Rpcrt4)
  endif()

  if (GISMO_WITH_PSOLID)
    target_link_libraries(${PROJECT_NAME} ${PARASOLID_LIBRARY})
  endif()

  if (GISMO_WITH_SUPERLU)
    target_link_libraries(${PROJECT_NAME} ${SUPERLU_LIBRARIES})
  endif()

  if (GISMO_WITH_PARDISO)
    target_link_libraries(${PROJECT_NAME} ${MKL_LIBRARIES})
  endif()

  if (GISMO_WITH_IPOPT)
    #find_package( LAPACK REQUIRED ) # Problematic on ubuntu
    #find_package( BLAS REQUIRED )
    #find_package( DL REQUIRED )
    find_program( patch_cmd "patch" REQUIRED )
    add_definitions( -DFORTRAN_INTEGER_TYPE=int -DHAVE_CMATH -DHAVE_CSTDIO)
    target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_IpOpt} dl )
    #target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_Blas} )
    #target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_Lapack} )
    #target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_Mumps} )
    #target_link_libraries(${PROJECT_NAME} ${IpOpt_LIB_Metis} )
  endif()

  IF (GISMO_EXTRA_DEBUG AND DBGHELP_FOUND) 
    TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${DBGHELP_LIBRARY}) 	
  ENDIF() 

 set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)

if( WIN32 ) # Copy the dll to the bin folder to allow executables to find it
    add_custom_command(
    TARGET ${PROJECT_NAME}
    POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/bin
    COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:${PROJECT_NAME}> ${CMAKE_BINARY_DIR}/bin
    COMMAND ${CMAKE_COMMAND} -E echo 'The file $<TARGET_FILE:${PROJECT_NAME}> is copied in the bin folder for convenience.' )
{'fraction_non_alphanumeric': 0.1896107418961074, 'fraction_numerical': 0.0029838600298386004, 'mean_word_length': 5.703636363636364, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '314032', 'n_tokens_mistral': 2869, 'n_tokens_neox': 2644, 'n_words': 419}