summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-11-05 02:23:24 +0000
committerGlenn Rice <glennricster@gmail.com>2010-11-05 02:23:24 +0000
commit2383e2b0f57ebad3eecab885d433341f2dbbfe20 (patch)
treeda966812c1cf3fb43dc0af6213158bd0dea5bebf /Source/Core/AudioCommon
parent49a9efb0101fc17444611824d2efec94401a9809 (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/AudioCommon')
-rw-r--r--Source/Core/AudioCommon/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/AudioCommon/CMakeLists.txt b/Source/Core/AudioCommon/CMakeLists.txt
index da7a000ea2..237ebd6f4d 100644
--- a/Source/Core/AudioCommon/CMakeLists.txt
+++ b/Source/Core/AudioCommon/CMakeLists.txt
@@ -36,3 +36,6 @@ endif()
add_library(audiocommon STATIC ${SRCS})
target_link_libraries(audiocommon ${LIBS})
+if(UNIX)
+ add_definitions(-fPIC)
+endif(UNIX)