Skip to content

Commit

Permalink
Rm wrong lib link for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sithumonline committed Apr 12, 2024
1 parent 850c5e9 commit cf48cf8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
find_package(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
include_directories(${GLFW_INCLUDE_DIRS})
link_directories(${GLFW_LIBRARY_DIRS} /mingw64/lib)
add_definitions(${GLFW_CFLAGS_OTHER} /mingw64/include)
link_directories(${GLFW_LIBRARY_DIRS})
add_definitions(${GLFW_CFLAGS_OTHER})
set(LIBS ${GLFW_LIBRARIES} -lGL)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
find_library(GLFW_LIBRARY NAMES glfw)
Expand All @@ -56,6 +56,8 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
set(LIBS ${GLFW_LIBRARY} ${OPENGL_LIBRARY} ${COCOA_LIBRARY} ${IOKIT_LIBRARY} ${COREVIDEO_LIBRARY})
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
find_package(glfw3 REQUIRED)
include_directories(/mingw64/include)
link_directories(/mingw64/lib)
set(LIBS glfw3 gdi32 opengl32 imm32)
endif()

Expand Down

0 comments on commit cf48cf8

Please sign in to comment.