Skip to content

Commit

Permalink
Hopefully fix passing of CMAKE_BUILD_TYPE down to subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Oct 24, 2018
1 parent d73dc0e commit 9a9ee26
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ before_build:
- echo cmake -G "%generator_name%" %cmake_toolset_args% %cmake_toolset_args_2%
%generator_args%
-DBOXBACKUP_VERSION=%compiled_version%
-DSUB_CMAKE_EXTRA_ARGS="-DCMAKE_BUILD_TYPE:STRING=%CONFIGURATION% -- /verbosity:minimal"
-DSUB_CMAKE_EXTRA_ARGS="-- /verbosity:minimal"
-DPLATFORM=%sane_platform%
%APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\windows
- cmake -G "%generator_name%" %cmake_toolset_args% %cmake_toolset_args_2%
%generator_args%
-DBOXBACKUP_VERSION=%compiled_version%
-DSUB_CMAKE_EXTRA_ARGS="-DCMAKE_BUILD_TYPE:STRING=%CONFIGURATION% -- /verbosity:minimal"
-DSUB_CMAKE_EXTRA_ARGS="-- /verbosity:minimal"
-DPLATFORM=%sane_platform%
%APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\windows

Expand Down
21 changes: 14 additions & 7 deletions infrastructure/cmake/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ else()
URL "http://zlib.net/zlib-${ZLIB_VERSION}.tar.gz"
URL_HASH ${ZLIB_HASH}
DOWNLOAD_NO_PROGRESS 1
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${zlib_install_dir} ${SUB_CMAKE_EXTRA_ARGS}
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${zlib_install_dir}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
${SUB_CMAKE_EXTRA_ARGS}
${zlib_install_command}
STEP_TARGETS configure build install
)
Expand Down Expand Up @@ -210,12 +213,15 @@ else()
URL "https://ftp.pcre.org/pub/pcre/pcre-${PCRE_VERSION}.tar.bz2"
URL_HASH ${PCRE_HASH}
DOWNLOAD_NO_PROGRESS 1
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${pcre_install_dir} ${SUB_CMAKE_EXTRA_ARGS}
-DPCRE_SUPPORT_LIBREADLINE=OFF
-DPCRE_SUPPORT_LIBBZ2=OFF
-DPCRE_BUILD_PCRECPP=OFF
-DPCRE_BUILD_PCREGREP=OFF
-DPCRE_BUILD_TESTS=OFF
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX=${pcre_install_dir}
-DPCRE_SUPPORT_LIBREADLINE=OFF
-DPCRE_SUPPORT_LIBBZ2=OFF
-DPCRE_BUILD_PCRECPP=OFF
-DPCRE_BUILD_PCREGREP=OFF
-DPCRE_BUILD_TESTS=OFF
${SUB_CMAKE_EXTRA_ARGS}
${pcre_install_command}
)

Expand Down Expand Up @@ -251,6 +257,7 @@ ExternalProject_Add(boxbackup
-DCMAKE_INSTALL_PREFIX=${install_dir}
-DAPPVEYOR_MODE=1
-DDEBUG=${DEBUG}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
${boxbackup_cmake_args}
${SUB_CMAKE_EXTRA_ARGS}
INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "No install step needed"
Expand Down

0 comments on commit 9a9ee26

Please sign in to comment.