Skip to content

Commit

Permalink
link shared libs on Cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
DDoSolitary authored and zhaozg committed Feb 13, 2022
1 parent e2fbfba commit 6cd4940
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ else (LUA)
if (USE_LUAJIT)
# We only link the libs on Windows, so find_package fully succeeding
# is only required on Windows
if (WIN32)
if (WIN32 OR CYGWIN)
find_package(LuaJIT REQUIRED)
link_directories(${LUAJIT_LIBRARIES})
else()
Expand All @@ -137,7 +137,7 @@ else (LUA)
else (USE_LUAJIT)
# We only link the libs on Windows, so find_package fully succeeding
# is only required on Windows
if (WIN32)
if (WIN32 OR CYGWIN)
find_package(Lua REQUIRED)
else()
find_package(Lua)
Expand Down Expand Up @@ -249,7 +249,7 @@ if(WIN32)
endif()

foreach(TARGET_NAME ${ACTIVE_TARGETS})
if(WIN32)
if(WIN32 OR CYGWIN)
if (LUA)
target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES} ${LUA_LIBRARIES})
else (LUA)
Expand Down

0 comments on commit 6cd4940

Please sign in to comment.