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
5 unset ( SWAMI_LIBS CACHE )
7 -# Options for the GNU C compiler only
8 -if ( CMAKE_COMPILER_IS_GNUCC )
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" )
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 )
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 )
29 unset ( MINGW32 CACHE )
31 # MinGW compiler (a Windows GCC port)
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 )