From 26a85a22917bd7a3cad320c10873dd8acb4f3c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Tue, 22 Feb 2022 20:58:04 +0100 Subject: [PATCH] Niceify opengl32 linkage on Windows --- CMakeLists.txt | 2 +- src/testbed.cu | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27849ed00..2d6f2cd3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ if (NGP_BUILD_WITH_GUI) include_directories("dependencies/gl3w") link_directories("dependencies") set(GL_SOURCES "dependencies/gl3w/GL/gl3w.c") - set(GL_LIBRARIES $) + set(GL_LIBRARIES opengl32 $) else() find_package(GLEW REQUIRED) include_directories(${GLEW_INCLUDE_DIRS}) diff --git a/src/testbed.cu b/src/testbed.cu index 03c8f7c08..a85060302 100644 --- a/src/testbed.cu +++ b/src/testbed.cu @@ -49,14 +49,6 @@ # include # endif # include -# if defined(_MSC_VER) -# pragma comment(lib, "opengl32.lib") -# pragma comment(lib, "gdi32.lib") -# pragma comment(lib, "shell32.lib") -# endif -# if defined(_MSC_VER) && (_MSC_VER >= 1900) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) -# pragma comment(lib, "legacy_stdio_definitions") -# endif #endif #undef min