message: fix spurious rebuilds when running CMake
diff: @@ -29,9 +29,10 @@ else()
  set(HWLOC_DIR "${TPL_HWLOC_PATH}" CACHE FILEPATH "The path to HWLOC")
  file(MAKE_DIRECTORY ${TPL_HWLOC_PATH}/lib/)
  file(GLOB HWLOC_LIBS "${TPL_HWLOC_PATH}/build/hwloc/.libs/libhwloc*")
  - execute_process(COMMAND cp "${TPL_HWLOC_PATH}/build/include/hwloc/autogen/config.h" "${TPL_HWLOC_PATH}/src/include/hwloc/autogen/")
  + configure_file("${TPL_HWLOC_PATH}/build/include/hwloc/autogen/config.h" "${TPL_HWLOC_PATH}/src/include/hwloc/autogen/config.h" COPYONLY)
  foreach(lib ${HWLOC_LIBS})
  - execute_process(COMMAND cp "${lib}" "${TPL_HWLOC_PATH}/lib/")
  + get_filename_component(lib_name ${lib} NAME)
  + configure_file("${lib}" "${TPL_HWLOC_PATH}/lib/${lib_name}" COPYONLY)
  endforeach()
  set(HWLOC_LIBRARIES "${TPL_HWLOC_PATH}/lib/libhwloc.so" CACHE FILEPATH "The path to HWLOC library libhwloc.so" FORCE)
  set(HWLOC_INCLUDE_DIRS "${TPL_HWLOC_PATH}/src/include" CACHE PATH "The directory containing the hwloc header, hwloc.h" FORCE)
  