Skip to content

Commit

Permalink
Fix CMAKE generator platform detection
Browse files Browse the repository at this point in the history
  • Loading branch information
rasikhq committed Aug 12, 2021
1 parent b515ea8 commit 9051358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(NOT WIN32)
module/luaimports/luaimports.linux.cpp
)
else()
if(NOT "${CMAKE_GENERATOR}" MATCHES "(Win32)")
if(NOT "${CMAKE_GENERATOR_PLATFORM}" MATCHES "(Win32)+")
target_link_libraries(DDiscord ${PROJECT_SOURCE_DIR}/bot/module/lib/lua5.1_64.lib)
else()
target_link_libraries(DDiscord ${PROJECT_SOURCE_DIR}/bot/module/lib/lua5.1.lib)
Expand Down

0 comments on commit 9051358

Please sign in to comment.