-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SegFault when overwriting cmake functions #121
Comments
Hi, Thanks for reporting the issue. Could you tell me on what OS You are? I am assuming Linux . I will try to reproduce it and find a Solution. It might also be a cmake Bug. |
Yes I'm using Linux :) |
Hi, sorry its taken so long for a response. I've tried it on linux and I can't seem to reproduce your error. Is your project available publicly? Then I might be able to debu it to find a solution. However it does seem to me that this is a CMake internal problem where I can only do so much. |
Btw when I encounter segfaults in cmake Its usually me creating infinite recursion |
yes it's public: https://github.com/amarullz/libaroma I thought about a loop too, but I have no idea how to debug cmake scripts. |
well cmake debugging sucks.... because it does not exist :) but I'll try to find your problem as soon as possible. (as this shed light on #118 ) |
If you not using my function overrides for cmake functions (like add_library, ... etc) you can take them out of the cmakepp source code (if you are using the single file version just remove the function or if you are using the multifile version then delete the function files which are located in cmake/targets/overrides) This might be a quick fix if you only want to use part of cmakepp (what do you want to use specifically?) |
I want to misuse cmake scripts as my own generator. |
Ok. well if you're interested in a quick fix which perform yourself you can just remove any unnecessary functions from cmakepp - template generation does not have many dependencies. I will be looking into it this week. |
If I override functions like add_library or add_executable, cmake stops with a segfault
example code:
macro(add_library _target)
_add_library (${_target} ${ARGN})
endmacro()
The text was updated successfully, but these errors were encountered: