wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

CMakeLists.txt is broken in the same manner as configure.ac, interface configure_file() needs to be used not file()

Open BrianAker opened this issue 3 years ago • 1 comments

Cmake is like autoconf in that can't track dependencies done using low level IO commands. In order to have a repeatable build you need to use configure_file(). All of:

set(OPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/wolfssl/options.h")
file(REMOVE ${OPTION_FILE})

file(APPEND ${OPTION_FILE} "/* wolfssl options.h\n")
...

Needs to be fixed, otherwise you have same build problems in cmake as you have today in autoconf.

BrianAker avatar Oct 20 '21 17:10 BrianAker

Hi @BrianAker, thanks for pointing this out. I'll fix this at some point in the near future.

haydenroche5 avatar Oct 20 '21 19:10 haydenroche5