Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller authored Sep 27, 2024
1 parent b8636bf commit d43c824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enable_language(C)
message("Enabled Lua lmathx support.")

if (LUA_VERSION_STRING VERSION_GREATER_EQUAL "5.5")
message(WARNING "You Lua version ${LUA_VERSION_STRING} is newer than the maximum lmathx package version supported (5.4.x). We'll try with the version compatible to 5.4/5.3, but no guarantee on success for that.")
message(WARNING "Your Lua version ${LUA_VERSION_STRING} is newer than the maximum lmathx package version supported (5.4.x). Therefore, it would be best to downgrade to Lua 5.4 or earlier. For now, we will use the version compatible to 5.4/5.3; but note that the build could fail due to that.")
target_sources(easi PRIVATE lua53/lmathx.c)
elseif (LUA_VERSION_STRING VERSION_GREATER_EQUAL "5.3")
target_sources(easi PRIVATE lua53/lmathx.c)
Expand All @@ -19,7 +19,7 @@ target_sources(easi PRIVATE lua52/lmathx.c)
elseif (LUA_VERSION_STRING VERSION_GREATER_EQUAL "5.1")
target_sources(easi PRIVATE lua51/lmathx.c)
else()
message(FATAL_ERROR "You Lua version ${LUA_VERSION_STRING} is older than the minimum lmathx package version supported (5.1).")
message(FATAL_ERROR "Your Lua version ${LUA_VERSION_STRING} is older than the minimum lmathx package version supported (5.1).")
endif()

target_compile_definitions(easi PRIVATE EASI_LUA_LMATHX)
Expand Down

0 comments on commit d43c824

Please sign in to comment.