-
Notifications
You must be signed in to change notification settings - Fork 713
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
Build fails with CMake 3.12 #167
Comments
I cannot reproduce this issue. I have just built SEAL 3.5.1 (a fresh clone) with CMake 3.12.4 in Linux. Could you please confirm that you were working on a fresh clone of SEAL? Also which version of CMake were you using, including the patch number? Thank you. |
That is to say, if you modified CMake arguments/options, executed CMake's configuration step, and skipped CMake's generation step, you probably can get this issue. The reason why generation is skipped is not clear to me yet. I'll leave this issue open until I figure this out. At least the minimum requirement is still 3.12. |
I have the same problem, with CMake 3.12.4. Haven't tried upgrading CMake to 3.17 yet. Can confirm I'm using a fresh clone. |
@zaczanussi Could you please elaborate on how you built SEAL, e.g. the list of command lines? Were you using a GUI or |
|
I have just reproduced this error. Thank you both for reporting this. Here are three solutions (choose the latter two if you have to use CMake 3.12):
I've tested all three solutions above. I'm going to check CMake releases to see the reason behind this issue, and release a quick patch with a reasonable fix. |
Number 2 worked for me, thanks so much! |
WORKING_DIRECTORY cannot be a generator-expression in CMake 3.12, and was supported in 3.13. This is the reason of this issue. Solution 2 is preferred. Minimum CMake version will remain the same. A fix is implemented internally and will appear in 3.5.2 soon. Much appreciated for your reports. |
Hello Sir, I am getting error at make command /home/god/SEALDemo/seal/seal.h: no such file or directory found include "/home/god/SEALDemo/seal/seal.h"Compilation terminated How to solve it? |
The README documentation and CMakeLists.txt both state that the minimal version for CMake is 3.12. However, building SEAL 3.5.1 with CMake 3.12 fails during library linking:
Upgrading to latest CMake (3.17) on my dev machine solved the issue. Not sure what's the real minimal version of CMake required.
The text was updated successfully, but these errors were encountered: