cmake: remove duplicate flags

also use the lighter elseif structure to reduce a bit the size of cmakefile
This commit is contained in:
Gregory Hainaut 2014-12-14 14:00:20 +01:00
parent 4773bcf0ea
commit a99f3ea321
16 changed files with 109 additions and 343 deletions

View File

@ -3,45 +3,27 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output CDVDiso)
set(CommonFlags
-fvisibility=hidden
-Wall
)
set(OptimizationFlags
-O2
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(CDVDisoFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CDVDisoFinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(CDVDisoFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CDVDisoFinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(CDVDisoFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(CDVDisoFinalFlags ${OptimizationFlags})
endif()
# CDVDiso sources
set(CDVDisoSources

View File

@ -4,7 +4,6 @@
set(Output CDVDlinuz)
set(CommonFlags
-Wall
-D_LARGEFILE64_SOURCE
)
@ -14,29 +13,16 @@ set(OptimizationFlags
-fomit-frame-pointer
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(CDVDlinuzFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CDVDlinuzFinalFlags ${CommonFlags})
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(CDVDlinuzFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CDVDlinuzFinalFlags ${CommonFlags} ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(CDVDlinuzFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(CDVDlinuzFinalFlags ${CommonFlags} ${OptimizationFlags})
endif()
# CDVDlinuz sources
set(CDVDlinuzSources
@ -95,4 +81,4 @@ set(CDVDlinuzFinalLibs
# add additional include directories
include_directories(Linux)
add_pcsx2_plugin(${Output} "${CDVDlinuzFinalSources}" "${CDVDlinuzFinalLibs}" "${CDVDlinuzFinalFlags}")
add_pcsx2_plugin(${Output} "${CDVDlinuzFinalSources}" "${CDVDlinuzFinalLibs}" "${CDVDlinuzFinalFlags}")

View File

@ -3,45 +3,27 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output CDVDnull)
set(CommonFlags
-fvisibility=hidden
-Wall
)
set(OptimizationFlags
-O2
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(CDVDnullFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CDVDnullFinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(CDVDnullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CDVDnullFinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(CDVDnullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(CDVDnullFinalFlags ${OptimizationFlags})
endif()
# CDVDnull sources
set(CDVDnullSources

View File

@ -3,7 +3,7 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# make cdvdGigaherz

View File

@ -3,44 +3,26 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output FWnull-0.7.0)
set(CommonFlags
-fvisibility=hidden
-Wall
)
set(OptimizationFlags
-O2
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(FWnullFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(FWnullFinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(FWnullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(FWnullFinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(FWnullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(FWnullFinalFlags ${OptimizationFlags})
endif()
# FWnull sources
set(FWnullSources
@ -82,4 +64,4 @@ set(FWnullFinalLibs
${GTK2_LIBRARIES}
)
add_pcsx2_plugin(${Output} "${FWnullFinalSources}" "${FWnullFinalLibs}" "${FWnullFinalFlags}")
add_pcsx2_plugin(${Output} "${FWnullFinalSources}" "${FWnullFinalLibs}" "${FWnullFinalFlags}")

View File

@ -12,8 +12,6 @@ set(Output GSdx-0.1.16)
set(CommonFlags
-fno-operator-names # because Xbyak uses and()/xor()/or()/not() function
-mfpmath=sse
#-Wstrict-aliasing # Allow to track strict aliasing issue.
-std=c++0x
-fno-strict-aliasing
-Wno-unknown-pragmas
-Wno-parentheses
@ -26,19 +24,15 @@ set(OptimizationFlags
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} -D_DEBUG -g -Wall)
endif()
set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} -D_DEBUG)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} ${OptimizationFlags} -D_DEVEL -g)
endif()
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} ${OptimizationFlags} -D_DEVEL)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} ${OptimizationFlags} -W)
endif()
if(XDG_STD)

View File

@ -3,45 +3,27 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output GSnull)
set(CommonFlags
-fvisibility=hidden
-Wall
)
set(OptimizationFlags
-O2
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(GSnullFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(GSnullFinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(GSnullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(GSnullFinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(GSnullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(GSnullFinalFlags ${OptimizationFlags})
endif()
# GSnull sources
set(GSnullSources

View File

@ -3,44 +3,26 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output PADnull)
set(CommonFlags
-fvisibility=hidden
-Wall
)
set(OptimizationFlags
-O2
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(PadNullFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(PadNullFinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(PadNullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(PadNullFinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(PadNullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(PadNullFinalFlags ${OptimizationFlags})
endif()
# PadNull sources
set(PadNullSources

View File

@ -3,45 +3,27 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output SPU2null)
set(CommonFlags
-fvisibility=hidden
-Wall
)
set(OptimizationFlags
-O2
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(SPU2nullFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(SPU2nullFinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(SPU2nullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(SPU2nullFinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(SPU2nullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(SPU2nullFinalFlags ${OptimizationFlags})
endif()
# SPU2null sources
set(SPU2nullSources

View File

@ -3,45 +3,27 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output USBnull-0.7.0)
set(CommonFlags
-fvisibility=hidden
-Wall
)
set(OptimizationFlags
-O2
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(USBnullFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(USBnullFinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(USBnullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(USBnullFinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(USBnullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(USBnullFinalFlags ${OptimizationFlags})
endif()
# USBnull sources
set(USBnullSources

View File

@ -3,45 +3,27 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output dev9null-0.5.0)
set(CommonFlags
-fvisibility=hidden
-Wall
)
set(OptimizationFlags
-O2
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(dev9nullFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(dev9nullFinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(dev9nullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(dev9nullFinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(dev9nullFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(dev9nullFinalFlags ${OptimizationFlags})
endif()
# dev9null sources
set(dev9nullSources

View File

@ -3,40 +3,27 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output onepad-1.1.0)
set(CommonFlags
-fvisibility=hidden
-Wall
-std=c++0x
)
set(OptimizationFlags
-O2
-DNDEBUG
)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(onepadFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(onepadFinalFlags "")
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(onepadFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(onepadFinalFlags ${OptimizationFlags})
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(onepadFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(onepadFinalFlags ${OptimizationFlags})
endif()
# onepad sources
set(onepadSources

View File

@ -9,45 +9,27 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output spu2x-2.0.0)
set(CommonFlags
-fvisibility=hidden
-Wall
)
set(OptimizationFlags
-O2
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(spu2xFinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(spu2xFinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(spu2xFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(spu2xFinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(spu2xFinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(spu2xFinalFlags ${OptimizationFlags})
endif()
# spu2x sources
set(spu2xSources

View File

@ -3,43 +3,26 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output zerospu2)
set(CommonFlags
-Wall
)
set(OptimizationFlags
-O2
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(zerospu2FinalFlags
${CommonFlags} -g
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
set(zerospu2FinalFlags "")
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
set(zerospu2FinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(zerospu2FinalFlags ${OptimizationFlags})
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(zerospu2FinalFlags ${OptimizationFlags})
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
set(zerospu2FinalFlags
${CommonFlags} ${OptimizationFlags}
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
# zerospu2 sources

View File

@ -20,7 +20,6 @@ endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zzogl-pg/opengl/ZeroGSShaders" AND REB
set(Output zzogl-0.4.0)
set(CommonFlags
-pthread
-DZEROGS_SSE2
-fno-strict-aliasing
-Wstrict-aliasing # Allow to track strict aliasing issue.
@ -40,32 +39,22 @@ if(NOT USE_CLANG)
)
endif(NOT USE_CLANG)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(zzoglFinalFlags
${zzoglFinalFlags}
${CommonFlags} -g -Wall -D_DEBUG
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(zzoglFinalFlags
${zzoglFinalFlags}
${CommonFlags} ${OptimizationFlags} -g -W -DZEROGS_DEVBUILD
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(zzoglFinalFlags
${zzoglFinalFlags}
${CommonFlags} ${OptimizationFlags} -W
)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
endif()
# Select the shader API
if(GLSL_API)

View File

@ -3,14 +3,13 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
endif(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output zzogl-shader)
set(CommonFlags
-pthread
-DZEROGS_SSE2
-fno-strict-aliasing
-Wstrict-aliasing # Allow to track strict aliasing issue.
@ -23,25 +22,15 @@ set(OptimizationFlags
-DNDEBUG
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
set(zerogsshadersFinalFlags
${CommonFlags} -g -Wall -D_DEBUG
${CommonFlags} -D_DEBUG
)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
set(zerogsshadersFinalFlags
${CommonFlags} ${OptimizationFlags} -g -W -DZEROGS_DEVBUILD
)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(zerogsshadersFinalFlags
${CommonFlags} ${OptimizationFlags} -W
)