]> git.pld-linux.org Git - packages/swami.git/blob - build.patch
- remove braindead cmake assumptions to use our CLFLAGS, rel 2
[packages/swami.git] / build.patch
1 --- swami-2.2.0/CMakeLists.txt~ 2022-01-29 23:16:50.000000000 +0100
2 +++ swami-2.2.0/CMakeLists.txt  2022-01-29 23:19:16.388525959 +0100
3 @@ -62,28 +62,6 @@
4  
5  unset ( SWAMI_LIBS CACHE )
6  
7 -# Options for the GNU C compiler only
8 -if ( CMAKE_COMPILER_IS_GNUCC )
9 -  if ( NOT APPLE )
10 -    set ( CMAKE_EXE_LINKER_FLAGS 
11 -          "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed" )
12 -    set ( CMAKE_SHARED_LINKER_FLAGS 
13 -          "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
14 -  endif ( NOT APPLE )
15 -  set ( GNUCC_WARNING_FLAGS "-Wall")
16 -  set ( CMAKE_C_FLAGS_DEBUG "-g -DDEBUG ${GNUCC_WARNING_FLAGS}" )
17 -  set ( CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG ${GNUCC_WARNING_FLAGS}" )
18 -  set ( CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG ${GNUCC_WARNING_FLAGS}" )
19 -endif ( CMAKE_COMPILER_IS_GNUCC )
20 -
21 -if ( enable-debug )  
22 -    set ( CMAKE_BUILD_TYPE "Debug" CACHE STRING
23 -          "Choose the build type, options: Debug Release RelWithDebInfo" FORCE )
24 -else ( enable-debug )
25 -    set ( CMAKE_BUILD_TYPE "Release" CACHE STRING
26 -          "Choose the build type, options: Debug Release RelWithDebInfo" FORCE )
27 -endif ( enable-debug )
28 -
29  unset ( MINGW32 CACHE )
30  if ( WIN32 )
31    # MinGW compiler (a Windows GCC port)
32 @@ -238,7 +238,7 @@
33  include ( InstallRequiredSystemLibraries )
34  set ( CPACK_GENERATOR STGZ;TGZ;TBZ2;ZIP )
35  set ( CPACK_PACKAGE_NAME ${PACKAGE} )
36 -set ( CPACK_STRIP_FILES ON )
37 +set ( CPACK_STRIP_FILES OFF )
38  
39  include ( CPack )
40  
This page took 0.086699 seconds and 3 git commands to generate.