MSI: Fix possible use of unintialized variable
[gpg4win.git] / src / toolchain.cmake.in
1 # toolchain.cmake.in for GPG4Win
2 # Copyright (C) 2015 Intevation GmbH
3 #
4 # This file is part of GPG4Win
5 #
6 # GPG4Win is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # GPG4Win is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
18
19 set(CMAKE_SYSTEM_NAME Windows)
20 set(MSYS 1)
21 set(BUILD_SHARED_LIBS ON)
22 set(LIBTYPE SHARED)
23 set(CMAKE_BUILD_TYPE Release)
24 set(CMAKE_FIND_ROOT_PATH @abs_top_builddir@/src/playground/install)
25 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
26 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
27 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
28 set(CMAKE_C_COMPILER @host@-gcc)
29 set(CMAKE_CXX_COMPILER @host@-g++)
30 set(CMAKE_Fortran_COMPILER @host@-gfortran)
31 set(CMAKE_RC_COMPILER @host@-windres)
32 set(HDF5_C_COMPILER_EXECUTABLE @host@-h5cc)
33 set(HDF5_CXX_COMPILER_EXECUTABLE @host@-h5c++)
34 set(PKG_CONFIG_EXECUTABLE pkg-config)
35 set(QT_QMAKE_EXECUTABLE @abs_top_builddir@/src/plaground/install/bin/qmake)
36 set(CMAKE_INSTALL_PREFIX  CACHE PATH "Installation Prefix")
37 set(CMAKE_BUILD_TYPE Release CACHE STRING "Debug|Release|RelWithDebInfo|MinSizeRel")