diff --git a/contrib/windows-cmake/CMakeLists.txt b/contrib/windows-cmake/CMakeLists.txt index 3ef45dcd9c..d153777d18 100644 --- a/contrib/windows-cmake/CMakeLists.txt +++ b/contrib/windows-cmake/CMakeLists.txt @@ -165,7 +165,7 @@ if(NOT HWLOC_SKIP_LSTOPO) ) target_compile_definitions(lstopo PRIVATE LSTOPO_HAVE_GRAPHICS) - add_executable(lstopo-win + add_executable(lstopo-win WIN32 ${LSTOPO_COMMON_SOURCES} ${TOPDIR}/utils/lstopo/lstopo-windows.c )