refactor: move res/config.h.in -> src/lib/config.h.in

This commit is contained in:
sithlord48 2024-10-12 11:34:40 -04:00 committed by Chris Rizzitello
parent 14dfcb672d
commit 78a8bba7a4
2 changed files with 2 additions and 1 deletions

View file

@ -163,7 +163,8 @@ macro(configure_unix_libs)
# Unix only: For config.h, save the results based on a template (config.h.in).
# Note that this won't work on Windows because filenames are not case sensitive,
# and we have header files named "Config.h" (upper case 'C').
configure_file(res/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/src/lib/config.h)
configure_file(${CMAKE_SOURCE_DIR}/src/lib/config.h.in
${CMAKE_BINARY_DIR}/src/lib/config.h)
add_definitions(-DSYSAPI_UNIX=1 -DHAVE_CONFIG_H)