mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 22:02:06 -06:00
[GH-ISSUE #318] Feature request: support cmake import with sub_directory #256
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#256
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ANaumann85 on GitHub (Dec 21, 2020).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/318
Originally assigned to: @jmcnamara on GitHub.
I would like to add the library in cmake as a subdirectory with a simple
call.
But at the release 1.0.0 (and master too), that does not work directly. Because in your CMakeLists.txt, line 97 the variable "PROJECT_NAME" is set as a cache variable. That means
@jmcnamara commented on GitHub (Dec 22, 2020):
@evanmiller or @Alexhuszagh Does this CMake change seem reasonable?
@evanmiller commented on GitHub (Dec 22, 2020):
@jmcnamara I am not familiar enough with CMake variables to offer an opinion here.
@ANaumann85 commented on GitHub (Dec 22, 2020):
would further comments or links to the documentation help?
@jmcnamara commented on GitHub (Dec 22, 2020):
@ANaumann85 Yes. Any additional explanation would be good. I don't really understand what the issue is.
However, it would probably be more helpful to describe the issue that you are having in your project (with some commandline examples if possible) rather than a general explanation of potential issues.
@ANaumann85 commented on GitHub (Dec 24, 2020):
I created a small working example.
The example imports the libxsxwriter as a sub directory and tries to compile a copy of your demo.c. That works fine, as long as one runs cmake only once.
But after a second cmake run, the target for the library xlsxwriter gets another name, the demo looses the relation to the library and therefore it looses the include path to the libxslxwriter.