CMake seems to think that the default INCLUDE_DIR for Boost is /usr/local/include, while in FreeBSD the pkg'd headers are actually stored in /usr/local/include/boost.
The BSD flavors and the various Linuxes keep some of their common functions in different places. libdl does not exist in FreeBSD, so the dynamic linker functions such as dlopen(), dlclose() etc. are kept inside libc, and ftime() is kept inside libcompat - instead of adding "dl" to SERVER_LIBRARIES, make it add "c compat".
GCC 4.2 / FreeBSD does not have the -static-libstdc++ option (but it does have -static-libgcc).
CMake seems to think that the default INCLUDE_DIR for Boost is /usr/local/include, while in FreeBSD the pkg'd headers are actually stored in /usr/local/include/boost.
The BSD flavors and the various Linuxes keep some of their common functions in different places. libdl does not exist in FreeBSD, so the dynamic linker functions such as dlopen(), dlclose() etc. are kept inside libc, and ftime() is kept inside libcompat - instead of adding "dl" to SERVER_LIBRARIES, make it add "c compat".
GCC 4.2 / FreeBSD does not have the -static-libstdc++ option (but it does have -static-libgcc).