[GH-ISSUE #336] VERSION_GREATER_EQUAL not recognized by CMake 3.6 #273

Closed
opened 2026-05-05 12:03:56 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @evanmiller on GitHub (Jun 4, 2021).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/336

Originally assigned to: @jmcnamara on GitHub.

I get the following error attempting to configure libxlsxwriter 1.0.6 using CMake 3.6.3:

CMake Error at CMakeLists.txt:114 (if):
  if given arguments:

    "3.6.3" "VERSION_GREATER_EQUAL" "3.12"

  Unknown arguments specified

A similar issue with another project was reported here: https://github.com/glfw/glfw/issues/1584

I suggest using a combination of VERSION_GREATER and VERSION_EQUAL to achieve the same result. Happy to open a pull request.

Originally created by @evanmiller on GitHub (Jun 4, 2021). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/336 Originally assigned to: @jmcnamara on GitHub. I get the following error attempting to configure libxlsxwriter 1.0.6 using CMake 3.6.3: ``` CMake Error at CMakeLists.txt:114 (if): if given arguments: "3.6.3" "VERSION_GREATER_EQUAL" "3.12" Unknown arguments specified ``` A similar issue with another project was reported here: https://github.com/glfw/glfw/issues/1584 I suggest using a combination of VERSION_GREATER and VERSION_EQUAL to achieve the same result. Happy to open a pull request.
gitea-mirror 2026-05-05 12:03:56 -06:00
Author
Owner

@jmcnamara commented on GitHub (Jun 4, 2021):

That's Evan. I'll look into fixing that.

<!-- gh-comment-id:854791025 --> @jmcnamara commented on GitHub (Jun 4, 2021): That's Evan. I'll look into fixing that.
Author
Owner

@jmcnamara commented on GitHub (Jun 4, 2021):

Thanks for the report. Fixed on main.

<!-- gh-comment-id:854839607 --> @jmcnamara commented on GitHub (Jun 4, 2021): Thanks for the report. Fixed on main.
Author
Owner

@evanmiller commented on GitHub (Jun 4, 2021):

@jmcnamara Thanks!

<!-- gh-comment-id:854878792 --> @evanmiller commented on GitHub (Jun 4, 2021): @jmcnamara Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#273
No description provided.