[CMake] Why is the binary md5sum value different?

Gelryun zteam at naver.com
Thu May 16 20:53:34 EDT 2019


I write MakefileList.txt like this.

------------------------------------------------------------------------
include_directories(${COMMINC_DIR} ${DBINC_DIR} ./)
link_directories(${DBLIB_DIR} ${COMMLIB_DIR})

set(DBUSERID withdb/ufdb)
PREPROCESS_ORACLE_FILES(ACK_db.pc ${DBUSERID} "${DBINC_DIR};${COMMINC_DIR}")

set(ACK_P_SRCS
        ACK_db.c ACK_p.c)

set(ACK_C_SRCS
        ACK_db.c ACK_c.c)

add_executable(ACK_p ${ACK_P_SRCS})
add_executable(ACK_c ${ACK_C_SRCS})


target_link_libraries(ACK_p ${DEF_P_LIBS} ${DBLIB})
target_link_libraries(ACK_c ${DEF_C_LIBS} ${DBLIB})

install(TARGETS ACK_p DESTINATION ${BIN_DIR})
install(TARGETS ACK_c DESTINATION ${BIN_DIR})
----------------------------------------------------------------------------------

When I install it, the md5sum value of the binaries there is different.

Why is the binary md5sum value different?

EX) _ Size is Same
$>md5sum DMACK_c
68ff336ffa2a454672c451bd3ad66369  DMACK_c
$> md5sum ../bin/DMACK_c
369c9a12e3dd58504e2180a008b12eb6  ../bin/DMACK_c




--
Sent from: http://cmake.3232098.n2.nabble.com/


More information about the CMake mailing list