mirror of https://github.com/PCSX2/pcsx2.git
[cmake]
* align cmake flags with codeblock one. (note spu2x may still fail to compile with inline problem) * Some final cleaning. You must be able to see your reflection now ;) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3169 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
e7b2379b03
commit
7883180ab9
|
@ -18,20 +18,6 @@ detectOperatingSystem()
|
|||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS " ")
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS " ")
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Detect the 32bit/64bit and set the 32bit library path 32_LD_LIBRARY_PATH
|
||||
# Note: Must be done before SearchForStuff
|
||||
#-------------------------------------------------------------------------------
|
||||
if(Linux)
|
||||
if(CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32")
|
||||
# 64 bits machine with 32 bits library in /usr/lib32
|
||||
set(32_LD_LIBRARY_PATH /usr/lib32)
|
||||
else(CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32")
|
||||
# default case
|
||||
set(32_LD_LIBRARY_PATH /usr/lib)
|
||||
endif(CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32")
|
||||
endif(Linux)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Include specific module
|
||||
# BuildParameters Must be done before SearchForStuff
|
||||
|
|
|
@ -155,10 +155,14 @@ endif(Subversion_FOUND)
|
|||
# Wx
|
||||
if(wxWidgets_FOUND)
|
||||
if(Linux)
|
||||
# Force the use of 32 bit library
|
||||
STRING(REGEX REPLACE "/usr/lib/wx" "${32_LD_LIBRARY_PATH}/wx"
|
||||
# Force the use of 32 bit library configuration on
|
||||
# 64 bits machine with 32 bits library in /usr/lib32
|
||||
if(CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32")
|
||||
STRING(REGEX REPLACE "/usr/lib/wx" "/usr/lib32/wx"
|
||||
wxWidgets_INCLUDE_DIRS "${wxWidgets_INCLUDE_DIRS}")
|
||||
endif(CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32")
|
||||
endif(Linux)
|
||||
|
||||
include(${wxWidgets_USE_FILE})
|
||||
endif(wxWidgets_FOUND)
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
|
@ -11,6 +11,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
|
@ -12,6 +12,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
|
@ -11,6 +11,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
|
@ -11,6 +11,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
|
@ -11,6 +11,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
|
@ -11,6 +11,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
|
@ -11,6 +11,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
|
@ -21,6 +21,7 @@ set(CommonFlags
|
|||
)
|
||||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
-fomit-frame-pointer
|
||||
)
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
|
@ -33,6 +33,7 @@ set(CommonFlags
|
|||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
-DNDEBUG
|
||||
)
|
||||
|
||||
# Debug - Build
|
||||
|
|
Loading…
Reference in New Issue