summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2011-01-31 02:13:10 +0000
committerGlenn Rice <glennricster@gmail.com>2011-01-31 02:13:10 +0000
commitf1e8da63ec8b5e0725b79ad63b635b2328a4e615 (patch)
tree7b1839744b12c391aba9a4058e3c20d39a68588b /Source
parentcb48f5969a177dcc197783baa1a11493b61fc7d2 (diff)
Linux build fix.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6999 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Common/CMakeLists.txt5
-rw-r--r--Source/Core/Core/CMakeLists.txt5
-rw-r--r--Source/Core/VideoCommon/CMakeLists.txt1
-rw-r--r--Source/Core/VideoUICommon/CMakeLists.txt3
-rw-r--r--Source/Plugins/CMakeLists.txt2
-rw-r--r--Source/Plugins/Plugin_VideoOGL/CMakeLists.txt7
6 files changed, 5 insertions, 18 deletions
diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt
index 11cde5301c..ea8b0dea58 100644
--- a/Source/Core/Common/CMakeLists.txt
+++ b/Source/Core/Common/CMakeLists.txt
@@ -41,7 +41,4 @@ endif(WIN32)
enable_precompiled_headers(Src/stdafx.h Src/stdafx.cpp SRCS)
add_library(common STATIC ${SRCS})
-target_link_libraries(common ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- add_definitions(-fPIC)
-endif()
+target_link_libraries(common clrun ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt
index d2e4b7d06d..93e2bf9f3f 100644
--- a/Source/Core/Core/CMakeLists.txt
+++ b/Source/Core/Core/CMakeLists.txt
@@ -182,7 +182,7 @@ set(SRCS Src/ActionReplay.cpp
Src/PowerPC/JitCommon/JitCache.cpp
Src/PowerPC/JitCommon/Jit_Util.cpp)
-set(LIBS bdisasm inputcommon core lua sfml-network)
+set(LIBS bdisasm inputcommon videoogl lua sfml-network)
if(WIN32)
set(SRCS ${SRCS} Src/HW/BBA-TAP/TAP_Win32.cpp Src/stdafx.cpp
@@ -209,6 +209,3 @@ endif(OPROFILE_FOUND)
add_library(core STATIC ${SRCS})
target_link_libraries(core ${LIBS})
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- add_definitions(-fPIC)
-endif()
diff --git a/Source/Core/VideoCommon/CMakeLists.txt b/Source/Core/VideoCommon/CMakeLists.txt
index 06a31c3c5e..c3bc541084 100644
--- a/Source/Core/VideoCommon/CMakeLists.txt
+++ b/Source/Core/VideoCommon/CMakeLists.txt
@@ -52,5 +52,4 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(videocommon ${LIBAV_LIBRARIES})
add_definitions(-D__STDC_CONSTANT_MACROS)
endif()
- add_definitions(-fPIC)
endif()
diff --git a/Source/Core/VideoUICommon/CMakeLists.txt b/Source/Core/VideoUICommon/CMakeLists.txt
index 164438fb0f..c03d80540a 100644
--- a/Source/Core/VideoUICommon/CMakeLists.txt
+++ b/Source/Core/VideoUICommon/CMakeLists.txt
@@ -2,6 +2,3 @@ set(SRCS Src/VideoConfigDiag.cpp
Src/DebuggerPanel.cpp)
add_library(videouicommon STATIC ${SRCS})
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- add_definitions(-fPIC)
-endif()
diff --git a/Source/Plugins/CMakeLists.txt b/Source/Plugins/CMakeLists.txt
index 619e00ded1..50a5dfab01 100644
--- a/Source/Plugins/CMakeLists.txt
+++ b/Source/Plugins/CMakeLists.txt
@@ -1,3 +1,3 @@
add_subdirectory(Plugin_VideoOGL)
-add_subdirectory(Plugin_VideoSoftware)
+#add_subdirectory(Plugin_VideoSoftware)
# TODO: Add other plugins here!
diff --git a/Source/Plugins/Plugin_VideoOGL/CMakeLists.txt b/Source/Plugins/Plugin_VideoOGL/CMakeLists.txt
index 1a9c788398..88fd551e49 100644
--- a/Source/Plugins/Plugin_VideoOGL/CMakeLists.txt
+++ b/Source/Plugins/Plugin_VideoOGL/CMakeLists.txt
@@ -39,8 +39,5 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
set(LIBS ${LIBS} usbhid)
endif()
-add_library(Plugin_VideoOGL MODULE ${SRCS})
-target_link_libraries(Plugin_VideoOGL ${LIBS})
-install(TARGETS Plugin_VideoOGL
- LIBRARY DESTINATION ${plugindir}
- RUNTIME DESTINATION ${plugindir})
+add_library(videoogl STATIC ${SRCS})
+target_link_libraries(videoogl ${LIBS})