Salome HOME
spns #32755 : TopIIVolMesh: move back to master branch
[tools/sat_salome.git] / products / patches / gl2ps-1.3.9p1-no_static_lib.patch
1 diff -Naur gl2ps-1.3.9p1_ori/CMakeLists.txt gl2ps-1.3.9p1_new/CMakeLists.txt
2 --- gl2ps-1.3.9p1_ori/CMakeLists.txt    2018-07-24 13:02:20.946136823 +0200
3 +++ gl2ps-1.3.9p1_new/CMakeLists.txt    2018-07-24 13:14:17.534888077 +0200
4 @@ -117,8 +117,11 @@
5  include_directories(${EXTERNAL_INCLUDES})
6  
7  if(OPENGL_FOUND)
8 -  add_library(lib STATIC gl2ps.c gl2ps.h)
9 -  set_target_properties(lib PROPERTIES OUTPUT_NAME gl2ps)
10 +  # Do not generate static library on Windows
11 +  if(NOT WIN32)
12 +    add_library(lib STATIC gl2ps.c gl2ps.h)
13 +    set_target_properties(lib PROPERTIES OUTPUT_NAME gl2ps)
14 +  endif(NOT WIN32)
15  
16    add_library(shared SHARED gl2ps.c gl2ps.h)
17    target_link_libraries(shared ${EXTERNAL_LIBRARIES})
18 @@ -130,7 +133,13 @@
19      set_target_properties(shared PROPERTIES COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS")
20    endif(MSVC)
21  
22 -  install(TARGETS lib shared DESTINATION lib${LIB_SUFFIX})
23 +  # Do not generate static library on Windows
24 +  if(NOT WIN32)
25 +    install(TARGETS lib shared DESTINATION lib${LIB_SUFFIX})
26 +  else(NOT WIN32)
27 +    install(TARGETS shared DESTINATION lib${LIB_SUFFIX})
28 +  endif(NOT WIN32)
29 +
30  endif(OPENGL_FOUND)
31  
32  if(WIN32)