diff options
| author | Glenn Rice <glennricster@gmail.com> | 2010-11-05 02:23:24 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2010-11-05 02:23:24 +0000 |
| commit | 2383e2b0f57ebad3eecab885d433341f2dbbfe20 (patch) | |
| tree | da966812c1cf3fb43dc0af6213158bd0dea5bebf /Source/Core/Common | |
| parent | 49a9efb0101fc17444611824d2efec94401a9809 (diff) | |
Improve the compiler flags for the cmake build system. -fPIC only needs to be specified for static libraries that are linked into shared libraries. cmake automatically uses -fPIC for shared libraries. Also ported several other needed compiler flags from the scons build. Set up the debug build, enabled with "-D CMAKE_BUILD_TYPE=Release", to work with wxWidgets debugging.
Note that most users will want to use the release build to get a -O3 optimized build. This can be enabled by adding "-D CMAKE_BUILD_TYPE=Release".
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6344 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index e7aded6b8e..e573f32d05 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -40,3 +40,6 @@ if(WIN32) endif(WIN32) add_library(common STATIC ${SRCS}) +if(UNIX) + add_definitions(-fPIC) +endif(UNIX) |
