Update CMakeLists.txt
only link to opengl32.lib on windows
This commit is contained in:
@@ -30,7 +30,10 @@ add_executable(
|
||||
)
|
||||
|
||||
target_include_directories(${current_target} PUBLIC ${CMAKE_SOURCE_DIR}/external)
|
||||
target_link_libraries(${current_target} PUBLIC opengl32.lib)
|
||||
|
||||
if(MSVC)
|
||||
target_link_libraries(${current_target} PUBLIC opengl32.lib)
|
||||
endif()
|
||||
|
||||
if( ENABLE_ALL_REASONABLE_WARNINGS )
|
||||
MESSAGE("-- Additional Warnings Enabled")
|
||||
|
||||
Reference in New Issue
Block a user