Skip to content

Commit

Permalink
Niceify opengl32 linkage on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom94 committed Feb 22, 2022
1 parent 5dfe126 commit 26a85a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<TARGET_OBJECTS:glfw_objects>)
set(GL_LIBRARIES opengl32 $<TARGET_OBJECTS:glfw_objects>)
else()
find_package(GLEW REQUIRED)
include_directories(${GLEW_INCLUDE_DIRS})
Expand Down
8 changes: 0 additions & 8 deletions src/testbed.cu
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@
# include <GL/glew.h>
# endif
# include <GLFW/glfw3.h>
# 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
Expand Down

0 comments on commit 26a85a2

Please sign in to comment.