You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.3 KiB

Index: CMakeLists.txt
--- CMakeLists.txt.orig 2017-02-06 07:46:13.179760000 +0100
+++ CMakeLists.txt 2017-02-07 22:54:58.272719000 +0100
@@ -72,11 +72,11 @@
set(CBOR_RESTRICT_SPECIFIER "restrict")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -Wall -pedantic -g -ggdb -DDEBUG=true")
- set(CMAKE_C_FLAGS_RELEASE "-O3 -flto -Wall -pedantic -DNDEBUG")
+ set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
endif()
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-g")
-set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-flto")
+set(CMAKE_EXE_LINKER_FLAGS_RELEASE "")
include(CheckTypeSize)
@@ -122,8 +122,3 @@
subdirs(src)
-if (WITH_TESTS)
- subdirs(test)
-endif (WITH_TESTS)
-
-subdirs(examples)
Index: src/CMakeLists.txt
--- src/CMakeLists.txt.orig 2017-02-06 07:46:13.180024000 +0100
+++ src/CMakeLists.txt 2017-02-07 22:55:26.806695000 +0100
@@ -12,15 +12,12 @@
endif()
add_library(cbor ${SOURCES})
-add_library(cbor_shared SHARED ${SOURCES})
-
-set_target_properties(cbor_shared PROPERTIES OUTPUT_NAME cbor VERSION "0.0.0" SOVERSION 0)
configure_file(libcbor.pc.in libcbor.pc @ONLY)
#http://www.cmake.org/Wiki/CMake:Install_Commands
-install(TARGETS cbor cbor_shared
+install(TARGETS cbor
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION bin)