diff --git a/build_teaspeak.sh b/build_teaspeak.sh index 52fa604..5cc90de 100755 --- a/build_teaspeak.sh +++ b/build_teaspeak.sh @@ -4,7 +4,8 @@ if [ -d build ]; then fi mkdir build && cd build -cmake .. -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_CXX_FLAGS="-I/usr/local/mysql/connector-c++-8.0/include/jdbc/ -I../../../libraries/boringssl/include/ -D_GLIBCXX_USE_CXX11_ABI=1" -DDISABLE_CUSTOM_OUTPUT=ON -DDISABLE_QT=ON +echo "Build type: ${TEASPEAK_BUILD_TYPE}" +cmake .. -DCMAKE_BUILD_TYPE="${TEASPEAK_BUILD_TYPE}" -DCMAKE_CXX_FLAGS="-I/usr/local/mysql/connector-c++-8.0/include/jdbc/ -I../../../libraries/boringssl/include/ -D_GLIBCXX_USE_CXX11_ABI=1" -DDISABLE_CUSTOM_OUTPUT=ON -DDISABLE_QT=ON if [ $? -ne 0 ]; then echo "Failed to run CMAKE project" exit 1 @@ -27,16 +28,17 @@ if [ $? -ne 0 ]; then exit 1 fi -${CXX_FLAGS} -${C_FLAGS} +#${CXX_FLAGS} +#${C_FLAGS} #CMake specific -${CMAKE_OPTIONS} -${CMAKE_MAKE_OPTIONS} +#${CMAKE_OPTIONS} +#${CMAKE_MAKE_OPTIONS} #Make specific (without cmake) -${MAKE_OPTIONS} +#${MAKE_OPTIONS} -CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" -CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" ${CMAKE_OPTIONS} +#CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" +#CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" ${CMAKE_OPTIONS} +