Update CMakeLists.txt

only link to opengl32.lib on windows
This commit is contained in:
McMassiveNZ
2023-05-08 20:07:51 +02:00
parent ab25ee9626
commit 05f1069e2f

View File

@@ -30,7 +30,10 @@ add_executable(
)
target_include_directories(${current_target} PUBLIC ${CMAKE_SOURCE_DIR}/external)
if(MSVC)
target_link_libraries(${current_target} PUBLIC opengl32.lib)
endif()
if( ENABLE_ALL_REASONABLE_WARNINGS )
MESSAGE("-- Additional Warnings Enabled")