Is the 64bit check in CMakeLists correct?
I'm no CMake expert, but this looks odd:
https://github.com/picotorrent/picotorrent/blob/develop/CMak...
# Get current architecture
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(PICO_ARCH "x64" )
else(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(PICO_ARCH "x86")
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
EDIT: this is just CMake's very odd syntax and it's actually a single condition.