Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
mmg3d
mmg3d-4.0-soname.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mmg3d-4.0-soname.patch of Package mmg3d
diff -aruN mmg3d4.orig/build/CMakeLists.txt mmg3d4/build/CMakeLists.txt --- mmg3d4.orig/build/CMakeLists.txt 2012-08-29 11:48:41.000000000 +0200 +++ mmg3d4/build/CMakeLists.txt 2012-09-29 23:09:48.708946308 +0200 @@ -66,23 +66,27 @@ ) include_directories(sources/) -add_executable(mmg3d4.0 ${source_files} ${main_file}) +add_executable(mmg3d ${source_files} ${main_file}) option (COMPIL_STATIC_LIBRARY "Use tutorial provided math implementation" OFF) if (COMPIL_STATIC_LIBRARY) - add_library(mmg3dlib4.0 STATIC ${source_files} ${lib_file}) - target_link_libraries(mmg3dlib4.0 ${M_LIB} ${LIBS_SCOTCH} ${LIBS_SCOTCHERR}) + add_library(mmg3dlib STATIC ${source_files} ${lib_file}) + target_link_libraries(mmg3dlib ${M_LIB} ${LIBS_SCOTCH} ${LIBS_SCOTCHERR}) endif (COMPIL_STATIC_LIBRARY) option (COMPIL_SHARED_LIBRARY "Use tutorial provided math implementation" OFF) if (COMPIL_SHARED_LIBRARY) - add_library(mmg3dlib4.0 SHARED ${source_files} ${lib_file}) - target_link_libraries(mmg3dlib4.0 ${M_LIB} ${LIBS_SCOTCH} ${LIBS_SCOTCHERR}) + add_library(mmg3dlib SHARED ${source_files} ${lib_file}) + target_link_libraries(mmg3dlib ${M_LIB} ${LIBS_SCOTCH} ${LIBS_SCOTCHERR}) + SET_TARGET_PROPERTIES(mmg3dlib + PROPERTIES + VERSION 4.0 + SOVERSION 4 ) endif (COMPIL_SHARED_LIBRARY) find_library(M_LIB m) -target_link_libraries(mmg3d4.0 ${M_LIB} ${LIBS_SCOTCH} ${LIBS_SCOTCHERR}) +target_link_libraries(mmg3d ${M_LIB} ${LIBS_SCOTCH} ${LIBS_SCOTCHERR}) #add testlib if (COMPIL_STATIC_LIBRARY) @@ -94,7 +98,7 @@ ) add_executable(testlib ${source_testlib}) include_directories(sources/) - target_link_libraries(testlib mmg3dlib4.0) + target_link_libraries(testlib mmg3dlib) endif (COMPIL_STATIC_LIBRARY) if (COMPIL_SHARED_LIBRARY) @@ -106,5 +110,5 @@ ) add_executable(testlib ${source_testlib}) include_directories(sources/) - target_link_libraries(testlib mmg3dlib4.0) + target_link_libraries(testlib mmg3dlib) endif (COMPIL_SHARED_LIBRARY) diff -aruN mmg3d4.orig/build/CMakeLists.txt~ mmg3d4/build/CMakeLists.txt~ --- mmg3d4.orig/build/CMakeLists.txt~ 1970-01-01 01:00:00.000000000 +0100 +++ mmg3d4/build/CMakeLists.txt~ 2012-09-29 23:07:07.964942501 +0200 @@ -0,0 +1,114 @@ +cmake_minimum_required (VERSION 2.6) +project (MMG3D) + +IF(APPLE) + add_definitions(-static-libgcc -mmacosx-version-min=10.4 -arch x86_64) + #to avoid pbs with binary files... + set(CMAKE_EXE_LINKER_FLAGS "-arch x86_64") + # determine if the processor supports 64bit execution + EXECUTE_PROCESS( + COMMAND sysctl hw.cpu64bit_capable + ERROR_QUIET + OUTPUT_VARIABLE 64_CMD + OUTPUT_STRIP_TRAILING_WHITESPACE + ) + STRING(REGEX REPLACE "^hw.cpu64bit_capable: (.*)" "\\1" 64_BIT "${64_CMD}") + ##otherwise pbs with linkage SCOTCH + #SET(CMAKE_OSX_ARCHITECTURES x86_64) + + # display the results + MESSAGE(STATUS "CMAKE_OSX_ARCHITECTURES: " ${CMAKE_OSX_ARCHITECTURES}) +ENDIF(APPLE) + + + +# should we use SCOTCH +option (USE_SCOTCH + "Use SCOTCH TOOL for renumbering" ON) + +# configure a header file to pass some of the CMake settings +# to the source code +configure_file ( + "sources/mmg3dConfig.h.in" + "sources/mmg3dConfig.h" + ) + +# add SCOTCH library? +# +if (USE_SCOTCH) + #Inclusion de SCOTCH + find_library(LIBS_SCOTCH scotch) + find_library(LIBS_SCOTCHERR scotcherr) + find_path(INCLUDE_SCOTCH scotch.h) + # IF(LIBS_SCOTCH_FOUND) + # MESSAGE(STATUS "Looking for SCOTCH - found") + # ELSE(SCOTCH_FOUND) + # MESSAGE(STATUS "Looking for SCOTCH - not found") + # ENDIF(SCOTCH_FOUND) + include_directories(${INCLUDE_SCOTCH}) +endif (USE_SCOTCH) + +#file sources +file( + GLOB + source_files + sources/* +) +file( + GLOB_RECURSE + main_file + sources/mmg3dmain/* +) +file( + GLOB_RECURSE + lib_file + sources/mmg3dlib/* +) + +include_directories(sources/) +add_executable(mmg3d ${source_files} ${main_file}) + +option (COMPIL_STATIC_LIBRARY + "Use tutorial provided math implementation" OFF) +if (COMPIL_STATIC_LIBRARY) + add_library(mmg3dlib STATIC ${source_files} ${lib_file}) + target_link_libraries(mmg3dlib ${M_LIB} ${LIBS_SCOTCH} ${LIBS_SCOTCHERR}) +endif (COMPIL_STATIC_LIBRARY) +option (COMPIL_SHARED_LIBRARY + "Use tutorial provided math implementation" OFF) +if (COMPIL_SHARED_LIBRARY) + add_library(mmg3dlib4.0 SHARED ${source_files} ${lib_file}) + target_link_libraries(mmg3dlib ${M_LIB} ${LIBS_SCOTCH} ${LIBS_SCOTCHERR}) + SET_TARGET_PROPERTIES(mmg3dlib + PROPERTIES + VERSION 4.0 + SOVERSION 4 ) +endif (COMPIL_SHARED_LIBRARY) + +find_library(M_LIB m) +target_link_libraries(mmg3d ${M_LIB} ${LIBS_SCOTCH} ${LIBS_SCOTCHERR}) + +#add testlib +if (COMPIL_STATIC_LIBRARY) + #file sources + file( + GLOB_RECURSE + source_testlib + libexamples/* + ) + add_executable(testlib ${source_testlib}) + include_directories(sources/) + target_link_libraries(testlib mmg3dlib) +endif (COMPIL_STATIC_LIBRARY) + +if (COMPIL_SHARED_LIBRARY) + #file sources + file( + GLOB_RECURSE + source_testlib + libexamples/* + ) + add_executable(testlib ${source_testlib}) + include_directories(sources/) + target_link_libraries(testlib mmg3dlib) +endif (COMPIL_SHARED_LIBRARY)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor