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_include_directories(${current_target} PUBLIC ${CMAKE_SOURCE_DIR}/external)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
target_link_libraries(${current_target} PUBLIC opengl32.lib)
|
target_link_libraries(${current_target} PUBLIC opengl32.lib)
|
||||||
|
endif()
|
||||||
|
|
||||||
if( ENABLE_ALL_REASONABLE_WARNINGS )
|
if( ENABLE_ALL_REASONABLE_WARNINGS )
|
||||||
MESSAGE("-- Additional Warnings Enabled")
|
MESSAGE("-- Additional Warnings Enabled")
|
||||||
|
|||||||
Reference in New Issue
Block a user