Browse Source

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

Previously it was under HAVE_WIN32, which is probably not what was
intended.
pull/62/head
Konstantin Pavlov 9 years ago
parent
commit
30b6a66914
  1. 10
      contrib/src/main.mak

10
contrib/src/main.mak

@ -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

Loading…
Cancel
Save