Skip to content
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

Allow building on BSD/Solaris/etc with CMake #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alarixnia
Copy link

@alarixnia alarixnia commented Apr 9, 2021

It's not only GNU systems that need libm linked.

Note, the tests still fail for me with:
error: ‘M_PIl’ was not declared in this scope; did you mean ‘M_PI’?
46 | long double phinc = 2k0 M_PIl / nfft;

Signed-off-by: Nia Alarie nia@NetBSD.org

It's not only GNU systems that need libm linked.

Note, the tests still fail with:
error: ‘M_PIl’ was not declared in this scope; did you mean ‘M_PI’?
   46 |         long double phinc = 2*k0* M_PIl / nfft;

Signed-off-by: Nia Alarie <nia@NetBSD.org>
@@ -105,7 +105,7 @@ endif()
# Add GNUInstallDirs for GNU infrastructure before target)include_directories
#

if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$" AND NOT CMAKE_CROSSCOMPILING)
if(UNIX AND NOT CMAKE_CROSSCOMPILING)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note #65

@basilgello
Copy link
Contributor

It's not only GNU systems that need libm linked.

And cross-compilers need -lm, too… Thanks for bringing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants