Commit 30b6a669 authored by Konstantin Pavlov's avatar Konstantin Pavlov

contrib: cmake: set the Debug/Release target for all operating systems.

Previously it was under HAVE_WIN32, which is probably not what was
intended.
parent 40489baa
......@@ -458,6 +458,11 @@ help:
# CMake toolchain
toolchain.cmake:
$(RM) $@
ifndef WITH_OPTIMIZATION
echo "set(CMAKE_BUILD_TYPE Debug)" >> $@
else
echo "set(CMAKE_BUILD_TYPE Release)" >> $@
endif
ifdef HAVE_WIN32
ifdef HAVE_WINDOWSPHONE
echo "set(CMAKE_SYSTEM_NAME WindowsPhone)" >> $@
......@@ -468,11 +473,6 @@ else
echo "set(CMAKE_SYSTEM_NAME Windows)" >> $@
endif
endif
ifndef WITH_OPTIMIZATION
echo "set(CMAKE_BUILD_TYPE Debug)" >> $@
else
echo "set(CMAKE_BUILD_TYPE Release)" >> $@
endif
ifdef HAVE_CROSS_COMPILE
echo "set(CMAKE_RC_COMPILER $(HOST)-windres)" >> $@
endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment