Daniel Scharrer
0c83a0d25b
Update copyright years
8 years ago
Daniel Scharrer
b029f025f7
CompileCheck: Ignore warnings for builtin checks
9 years ago
Daniel Scharrer
180e055c10
CompileCheck: Create uniquely-named builtin test files
9 years ago
Daniel Scharrer
342f0f238a
CompileCheck: Add comment
9 years ago
Daniel Scharrer
0fa8498256
CompileCheck: Fix check_flag for MSVC
9 years ago
Daniel Scharrer
b6921fd277
CMake: Use PROJECT_BINARY_DIR instead of CMAKE_BINARY_DIR
9 years ago
Daniel Scharrer
6acf806782
Update copyright years
10 years ago
Daniel Scharrer
b3ca90e529
Fix build with CMake < 3.0
10 years ago
Daniel Scharrer
32fa0f6bd6
CompileCheck.cmake: Use implicit variable expansion in if()
10 years ago
Daniel Scharrer
2c827154cd
Update copyright lines
11 years ago
Daniel Scharrer
db84dd0a6b
Use __builtin_bswap16 when available
...
Also use configure checks for 32-bit and 64-bit variants instead of
relying on compiler version.
Fixes: issue #41
11 years ago
Daniel Scharrer
6f2205d263
CMake: Disable check_link_library() with MSVC
12 years ago
Daniel Scharrer
9b6502061a
Update copyright lines in files changed this year
13 years ago
Daniel Scharrer
5a678b88f5
Add C++11 feature checks
13 years ago
Daniel Scharrer
6618f94a82
Avoid boost::shared_ptr
...
If possible, use std::unique_ptr instead (or std::auto_ptr for C++03)
13 years ago
Daniel Scharrer
5f6f07570b
Fix build on armv6j and with older glibc
...
- Be more careful about the distinction between CXX and linker flags.
- Define -D_GNU_SOURCE=1 for compatibility with older glibc versions.
13 years ago
Daniel Scharrer
64d0b02907
Fix MSVC 10 build
...
std::bitset constructor was ambiguous because in C++11 the parameter
changed from unsigned long to unsigned long while MSVC violates the
standard by also having a constructor taking an int parameter.
13 years ago
Daniel Scharrer
153b6d4229
Improve checks for compiler and linker flags
...
- Check more warning expressions against the standard output
- Don't pass linker flags to be tested to the compiler
13 years ago
Daniel Scharrer
88a7f1f687
Add a note about CMake's check_cxx_compiler_flag
13 years ago
Daniel Scharrer
a54b579cc3
Add CMake options to disable custom compiler flags
...
* SET_WARNING_FLAGS for warning options (don't affect binaries)
* SET_OPTIMIZATION_FLAGS for compiler & linker optimization options
Also, re-enable some warnings that were disabled and instead suppress
them for the individual occurences.
14 years ago
Daniel Scharrer
c327d056ea
Update copyright year in files changed since 1.2
14 years ago
Daniel Scharrer
0a03cf919c
CMake: Don't include linker flags in CMAKE_CXX_FLAGS or older gcc versions will complain.
14 years ago
Daniel Scharrer
4d423f27ac
Add copyright notices.
14 years ago
Daniel Scharrer
bdfa8ddc9b
Many fixes.
15 years ago