Andreas Schneider
21d37f8605
cmake: Move CompilerFlags to own file
...
They need to be included before the project() call.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 91800eb2436269993493b606b905cf0572e945e2)
2018-09-05 21:57:35 +02:00
Andreas Schneider
a4704cba0b
cmake: Remove obsolete DefineCompilerFlags.cmake
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 9820a35a9ed4802b1eb19fd8e8d4742f6380a6cc)
2018-08-22 09:08:20 +02:00
Aris Adamantiadis
31fb4e1e69
build: remove OSX deprecated warnings for openssl
2014-02-02 21:41:32 +01:00
Andreas Schneider
26c118890f
cmake: Only build with _FORTIFY_SOURCE on release builds.
2013-07-25 10:02:01 +02:00
Andreas Schneider
97e7c95d21
cmake: Pass _FORTIFY_SOURCE directly to the preprocessor.
2013-07-13 13:54:00 +02:00
Andreas Schneider
afe4c92bbf
cmake: Fix setting -D_FORTIFY_SOURCE=2.
2013-02-07 17:02:51 +01:00
Andreas Schneider
915781381e
BUG 99: Fix string function if no build type is set.
2013-01-22 16:28:25 +01:00
Andreas Schneider
fb3f649c76
cmake: Only set -D_FORTIFY_SOURCE=2 if we have optimizations.
2012-12-25 17:35:07 +01:00
Andreas Schneider
f2e498c7db
cmake: Set GNU compiler flags also for clang.
2012-10-22 16:05:39 +02:00
Andreas Schneider
ca47c9b46e
cmake: Make CHECK_C_COMPILER_FLAG_SSP a function.
2011-07-29 11:37:52 +02:00
Andreas Schneider
2b6fa19fe5
cmake: Fixed msvc posix warnings and unsecure functions.
2011-01-02 19:35:53 +01:00
Andreas Schneider
9f02a817ff
build: Added -pedantic-errors.
2010-09-10 21:46:36 +02:00
Andreas Schneider
254a08f540
build: Cleanup DefineCompilerFlags.
2010-09-08 11:20:10 +02:00
Aris Adamantiadis
cbd0a8f4b5
Change the test file for stackprotector for clang
...
Now compiles with clang !
2010-04-28 18:01:15 +02:00
Andreas Schneider
492d1f24c8
Set CFLAGS correctly.
2010-02-13 12:47:28 +01:00
Andreas Schneider
e78334688f
Fixed setting of LFS CFLAGS.
2009-10-02 20:19:48 +02:00
Andreas Schneider
566fda70a5
Fixed LFS support on unix.
2009-10-02 20:17:21 +02:00
Andreas Schneider
8ed9cdce80
Remove --as-needed linker flag.
2009-10-01 10:19:07 +02:00
Andreas Schneider
16870abed7
Add more warnings to gcc.
2009-09-01 11:03:48 +02:00
Andreas Schneider
b8508020e5
Link shared libraries with --as-needed by default.
2009-08-25 15:06:56 +02:00
Andreas Schneider
a1ad0deb32
Set gcc to c99 standard and enable pedantic.
2009-08-25 13:58:30 +02:00
Andreas Schneider
011ab7c8fe
Suppress warning about "deprecated" functions in MSVC.
2009-08-11 15:36:37 +02:00
Andreas Schneider
ef2c8d66f1
Add compile flags and test for compiler options only if we use gcc.
2009-07-21 11:14:54 +02:00
Andreas Schneider
1a6038baa5
Only add additional warnings if we have a GNU compiler.
2009-07-21 11:10:09 +02:00
Andreas Schneider
910689126a
Fix cmake on BSD.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@773 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-09 10:54:48 +00:00
Andreas Schneider
460d0b402b
Add Makefiles for the CMake build system.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@203 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-02 14:44:46 +00:00