Revision: 69999 http://sourceforge.net/p/brlcad/code/69999 Author: starseeker Date: 2017-07-26 20:19:07 +0000 (Wed, 26 Jul 2017) Log Message: ----------- gethostname needs ws2_32 on Windows
Modified Paths: -------------- brlcad/trunk/CMakeLists.txt Modified: brlcad/trunk/CMakeLists.txt =================================================================== --- brlcad/trunk/CMakeLists.txt 2017-07-26 18:56:19 UTC (rev 69998) +++ brlcad/trunk/CMakeLists.txt 2017-07-26 20:19:07 UTC (rev 69999) @@ -2698,10 +2698,17 @@ return 0; } ") +# Grumble... find_library doesn't find ws2_32, so set it by hand. +if(CPP_DLL_DEFINES) + set(WS2_32_LIBRARY ws2_32) +else(CPP_DLL_DEFINES) + set(WS2_32_LIBRARY "") +endif(CPP_DLL_DEFINES) file(WRITE "${CMAKE_BINARY_DIR}/CMakeTmp/report_hostname.c" "${report_hostname_src}") try_run(RH_RESULT RH_COMPILED "${CMAKE_BINARY_DIR}/CMakeTmp" "${CMAKE_BINARY_DIR}/CMakeTmp/report_hostname.c" COMPILE_DEFINITIONS "${UNISTD_DEF}" + LINK_LIBRARIES "${WS2_32_LIBRARY}" COMPILE_OUTPUT_VARIABLE RH_COMPILE_MSGS RUN_OUTPUT_VARIABLE BRLCAD_COMPILE_HOSTNAME) if(NOT RH_COMPILED) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits