Florent Castelli
bf2890f1f8
cmake: Change else(.*) to else()
2017-01-25 15:07:32 +01:00
Florent Castelli
87380c1c2c
cmake: Change endif(.*) to endif()
2017-01-25 15:07:32 +01:00
Florent Castelli
2fd034789e
cmake: Move /MP flag to MSVC compile flag section
2017-01-25 06:10:20 +01:00
Florent Castelli
221f991f1e
cmake: Move section to disable PIE with the other compiler flags
2017-01-25 06:10:20 +01:00
Florent Castelli
1dda078c61
cmake: Compile on Windows with C++ Exceptions
2017-01-25 06:10:20 +01:00
Florent Castelli
d2cb5e6407
cmake: Small random cleanups
2017-01-25 06:10:20 +01:00
Florent Castelli
aac17b06d1
cmake: Split compile definitions and options
2017-01-25 06:10:20 +01:00
Florent Castelli
5129ba1289
cmake: Add section with Windows defines
2017-01-25 06:10:19 +01:00
Florent Castelli
fafb103c52
cmake: Move LTO settings lower in the file
2017-01-25 06:10:19 +01:00
Florent Castelli
925297d528
cmake: Simplify setting arch flags on macOS
2017-01-25 06:10:19 +01:00
Florent Castelli
3e28ebc31e
cmake: Fix arch detection
...
Windows arch is set to AMD64, and we don't really want ix86 either
2017-01-25 06:10:19 +01:00
Florent Castelli
c48617008d
cmake: Regroup compilation flags together
2017-01-25 06:10:19 +01:00
Florent Castelli
ff4ef08745
cmake: Readd fomit-frame-pointer on macOS
...
Make it also properly set on Release for multi-configuration generators
2017-01-25 06:10:19 +01:00
Florent Castelli
8f355962ce
cmake: Move include higher up in the file
2017-01-25 06:10:19 +01:00
Florent Castelli
ec84c26975
cmake: Remove unused variable
2017-01-25 06:10:18 +01:00
Florent Castelli
b9127cd2e0
cmake: Regroup definitions for 64bit file offsets
2017-01-25 06:10:18 +01:00
Florent Castelli
a2e40a11d7
Fix typo MinSizeRe -> MinSizeRel
2017-01-25 06:10:18 +01:00
Florent Castelli
08b73b8a77
cmake: Move check_and_add_flag to a separate file
...
Also make it add flags to both C and C++ when appropriate
2017-01-25 02:34:33 +01:00
Markus Wick
eed64bb0fe
Merge pull request #4744 from ligfx/cleanup-osx-cmake
...
CMake: Cleanup macOS-related logic
2017-01-24 14:36:10 +01:00
Michael Maltese
c85127c973
CMake: move CMAKE_MACOSX_RPATH with rest of macOS logic
2017-01-24 01:27:42 -08:00
Michael Maltese
b65b87c8b4
CMake: don't need to force Clang on macOS
...
It's already the default!
2017-01-24 01:27:42 -08:00
Michael Maltese
7ebb1b4d3d
CMake: find_package(Threads) on macOS too
2017-01-24 01:27:41 -08:00
Michael Maltese
4cbd07b81f
CMake: remove unneeded macOS frameworks
2017-01-24 01:27:41 -08:00
Michael Maltese
0ab3b1a3ff
CMake: use CMAKE_OSX_DEPLOYMENT_TARGET
2017-01-24 01:27:41 -08:00
Michael Maltese
951eb9a801
CMake: use CMAKE_OSX_ARCHITECTURES
2017-01-23 23:44:38 -08:00
Florent Castelli
a917d247ed
DolphinWX: Remove HAVE_WX preprocessor define
...
I think we don't have to double check it when building the WX target.
2017-01-24 05:48:08 +01:00
Florent Castelli
fa04c1479e
cmake: Remove PCH support
...
Compilers are very picky and don't use PCH when they have been compiled
with different flags. I even got some ICE in MSVC, so removing them for now.
Modules are the solution.
2017-01-24 03:22:03 +01:00
Florent Castelli
6c197a8f6a
cmake: Rename variable for libxi to X11_INPUT
2017-01-21 02:44:18 +01:00
Florent Castelli
08d6a24bbc
cmake: Build HIDAPI on Windows
2017-01-21 00:34:02 +01:00
Florent Castelli
56559c51cf
cmake: librt is found only on Linux
2017-01-21 00:34:02 +01:00
Florent Castelli
4785802b9e
cmake: Move C++ standard requirement out of global scope to Source/
2017-01-20 17:46:40 +01:00
Florent Castelli
17187694f6
cmake: Add CCache support
2017-01-17 22:39:51 +01:00
Florent Castelli
6829b42846
cmake: Don’t use message(“”)
...
If there’s no category, the message ends up in stderr instead of stdout with the other regular CMake output.
2017-01-17 22:39:51 +01:00
Florent Castelli
2c6d2dd1e3
cmake: Find programs on the host too when building for Android
2017-01-17 22:39:51 +01:00
Florent Castelli
62eccff315
Remove policy check for BSD as it is ON by default now
2017-01-17 21:50:44 +01:00
Florent Castelli
875563787f
cmake: include(Find…)->find_package(…)
2017-01-17 21:50:44 +01:00
Mat M
81358dbf20
Merge pull request #4674 from Orphis/require_gcc5
...
cmake: Enforce minimum GCC version
2017-01-17 14:35:38 -05:00
Florent Castelli
868c59dd1c
cmake: Enforce minimum GCC version
2017-01-17 20:02:21 +01:00
Lioncash
bae0158fc1
CMakeLists: Make CMake 3.5.0 the minimum requirement
2017-01-17 13:36:39 -05:00
Jeffrey Pfau
1b161aad6b
CMake: Search /usr/local paths on BSD
...
CMake would have trouble with some configuration tests on FreeBSD (and
presumably other BSDs) due to installed libraries being in /usr/local, but
not being in the default search path. Adding these to the default search path
fixes mbedtls and portaudio not being found, and possibly more.
2017-01-17 00:46:10 -08:00
Florent Castelli
5955c86ec5
cmake: Set MACOSX_RPATH to OFF
...
In newer versions of CMake, the variable is ON by default.
This generates imports like @rpath/libusb.dylib which the
packaging script doesn’t understand.
We don’t really need @rpath, so we can just disable it
at the global scope instead of fixing the script.
2017-01-17 04:23:56 +01:00
Emmanuel Gil Peyrot
de485f3efc
CMake: Add an option to disable bluez support.
...
This removes bluetooth support.
2016-12-27 15:08:33 +01:00
Emmanuel Gil Peyrot
c57f7414a8
CMake: Add an option to disable LLVM support.
...
This makes the disassembler only work for x86.
2016-12-27 15:08:13 +01:00
Emmanuel Gil Peyrot
6033250beb
CMake: Add an option to disable each sound backend.
...
They are already disabled when the libraries can’t be found, this only
helps people who want to build without them despite having them
installed, for example to provide a package to someone else.
2016-12-27 15:08:10 +01:00
Grant Paul
449ae01db6
Remove dead code to set the path to the macOS SDK.
...
CMake autodetects a macOS SDK into `CMAKE_OSX_SYSROOT`. There's no
need to duplicate that logic and search out a specifc old version.
2016-12-08 20:53:12 -08:00
Léo Lam
f270438a8a
CMakeLists: Fix indentation
2016-11-20 18:11:57 +01:00
Jules Blok
49ac577ac0
Merge pull request #4388 from ligfx/portaudio_static
...
CMake: build PortAudio as static library
2016-11-01 18:32:12 +01:00
Michael Maltese
04e262513c
CMake: build PortAudio as static library
...
Due to issues raised in #4255 .
2016-10-26 11:53:14 -07:00
Chris Burgener
6fde08bc34
Check if compilers support -no-pie or -nopie
2016-10-21 10:36:33 -04:00
Chris Burgener
d03a35ac92
Add -no-pie flag to CMake
2016-10-19 09:52:30 -04:00