|
|
7b5eec |
diff -up drpm-0.3.0/CMakeLists.txt.than drpm-0.3.0/CMakeLists.txt
|
|
|
7b5eec |
diff -up drpm-0.3.0/src/CMakeLists.txt.than drpm-0.3.0/src/CMakeLists.txt
|
|
|
7b5eec |
--- drpm-0.3.0/src/CMakeLists.txt.than 2017-03-23 13:32:42.043858861 -0400
|
|
|
7b5eec |
+++ drpm-0.3.0/src/CMakeLists.txt 2017-03-23 13:33:07.444304342 -0400
|
|
|
7b5eec |
@@ -16,7 +16,7 @@ configure_file(config.h.in ${CMAKE_BINAR
|
|
|
7b5eec |
add_library(drpm SHARED ${DRPM_SOURCES})
|
|
|
7b5eec |
|
|
|
7b5eec |
set_source_files_properties(${DRPM_SOURCES} PROPERTIES
|
|
|
7b5eec |
- COMPILE_FLAGS "-std=c99 -pedantic -Wall -Wextra -DHAVE_CONFIG_H -I${CMAKE_BINARY_DIR}"
|
|
|
7b5eec |
+ COMPILE_FLAGS "-std=c99 -fno-builtin-strcmp -pedantic -Wall -Wextra -DHAVE_CONFIG_H -I${CMAKE_BINARY_DIR}"
|
|
|
7b5eec |
)
|
|
|
7b5eec |
|
|
|
7b5eec |
target_link_libraries(drpm ${DRPM_LINK_LIBRARIES})
|
|
|
7b5eec |
diff -up drpm-0.3.0/test/CMakeLists.txt.than drpm-0.3.0/test/CMakeLists.txt
|
|
|
7b5eec |
--- drpm-0.3.0/test/CMakeLists.txt.than 2017-03-23 13:38:06.729554341 -0400
|
|
|
7b5eec |
+++ drpm-0.3.0/test/CMakeLists.txt 2017-03-23 13:38:42.840187780 -0400
|
|
|
7b5eec |
@@ -33,7 +33,7 @@ endif()
|
|
|
7b5eec |
add_executable(drpm_api_tests ${DRPM_TEST_SOURCES})
|
|
|
7b5eec |
|
|
|
7b5eec |
set_source_files_properties(${DRPM_TEST_SOURCES} PROPERTIES
|
|
|
7b5eec |
- COMPILE_FLAGS "-std=c99 -pedantic -Wall -Wextra -DHAVE_CONFIG_H -I${CMAKE_BINARY_DIR}"
|
|
|
7b5eec |
+ COMPILE_FLAGS "-std=c99 -fno-builtin-strcmp -pedantic -Wall -Wextra -DHAVE_CONFIG_H -I${CMAKE_BINARY_DIR}"
|
|
|
7b5eec |
)
|
|
|
7b5eec |
|
|
|
7b5eec |
target_link_libraries(drpm_api_tests ${DRPM_LINK_LIBRARIES} ${CMOCKA_LIBRARIES})
|
|
|
7b5eec |
@@ -52,13 +52,3 @@ if (BASH_PROGRAM)
|
|
|
7b5eec |
)
|
|
|
7b5eec |
set_tests_properties(drpm_cmp_files PROPERTIES DEPENDS drpm_api_tests)
|
|
|
7b5eec |
endif()
|
|
|
7b5eec |
-
|
|
|
7b5eec |
-
|
|
|
7b5eec |
-if (VALGRIND_PROGRAM)
|
|
|
7b5eec |
- add_test(
|
|
|
7b5eec |
- NAME drpm_memcheck
|
|
|
7b5eec |
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
7b5eec |
- COMMAND valgrind ${DRPM_TEST_ARGS_VALGRIND} ./drpm_api_tests
|
|
|
7b5eec |
- )
|
|
|
7b5eec |
-endif()
|
|
|
7b5eec |
-
|