diff options
author | Brad King <brad.king@kitware.com> | 2018-03-20 15:39:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-20 15:39:28 (GMT) |
commit | 3b7be02480bbc462f2ebdd0eff156675dd57c50a (patch) | |
tree | 922f1e38d468d587f54fddbc4199d93e2eab5927 /Help/guide/tutorial/Step7/MathFunctions | |
parent | 1c3bbda2f2920f416304086ece139ba1b50015ea (diff) | |
download | CMake-3b7be02480bbc462f2ebdd0eff156675dd57c50a.zip CMake-3b7be02480bbc462f2ebdd0eff156675dd57c50a.tar.gz CMake-3b7be02480bbc462f2ebdd0eff156675dd57c50a.tar.bz2 |
ccmake: Fix compilation with ncurses on Solaris
On Solaris the ncurses header may define an `__attribute__` macro.
This breaks C++ headers that use `__attribute__(...)` syntax.
Somehow it causes references to unresolved symbols:
__gthrw_pthread_once
__gthrw_pthread_mutex_lock
__gthrw_pthread_mutex_unlock
instead of references to the correct symbols:
pthread_once
pthread_mutex_lock
pthread_mutex_unlock
Detect this case and undefine the `__attribute__` macro after
including the curses headers.
Diffstat (limited to 'Help/guide/tutorial/Step7/MathFunctions')
0 files changed, 0 insertions, 0 deletions