file(RENAME ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt.bak)
file(STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt.bak ORIG_FILE NEWLINE_CONSUME)
file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt "add_definitions(-DSIZEOF_SIZE_T=4)\n\n")
file(APPEND ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt ${ORIG_FILE})

