# remove CMAKE_BUILD_TYPE check (beacuse it is set to EasyBuildRelease to avoid -O3 optimization flag) # November 02nd 2018 by B. Hajgato - (Free University Brussels - VUB) diff --new-file -ru psi4-1.2.1.orig/cmake/autocmake_safeguards.cmake psi4-1.2.1/cmake/autocmake_safeguards.cmake --- psi4-1.2.1.orig/cmake/autocmake_safeguards.cmake 2018-07-25 04:11:25.000000000 +0200 +++ psi4-1.2.1/cmake/autocmake_safeguards.cmake 2018-10-30 16:18:26.650251435 +0100 @@ -19,8 +19,8 @@ string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_tolower) string(TOUPPER "${CMAKE_BUILD_TYPE}" cmake_build_type_toupper) -if(NOT cmake_build_type_tolower STREQUAL "debug" AND - NOT cmake_build_type_tolower STREQUAL "release" AND - NOT cmake_build_type_tolower STREQUAL "relwithdebinfo") - message(FATAL_ERROR "Unknown build type \"${CMAKE_BUILD_TYPE}\". Allowed values are Debug, Release, RelWithDebInfo (case-insensitive).") -endif() +#if(NOT cmake_build_type_tolower STREQUAL "debug" AND +# NOT cmake_build_type_tolower STREQUAL "release" AND +# NOT cmake_build_type_tolower STREQUAL "relwithdebinfo") +# message(FATAL_ERROR "Unknown build type \"${CMAKE_BUILD_TYPE}\". Allowed values are Debug, Release, RelWithDebInfo (case-insensitive).") +#endif() --- psi4-1.3.2/external/upstream/gau2grid/CMakeLists.txt.orig 2020-02-26 15:12:45.568705619 +0100 +++ psi4-1.3.2/external/upstream/gau2grid/CMakeLists.txt 2020-02-26 15:13:58.557828579 +0100 @@ -16,6 +16,7 @@ GIT_REPOSITORY https://github.com/dgasmith/gau2grid GIT_TAG v1.3.1 UPDATE_COMMAND "" + PATCH_COMMAND sed -e "s/debug/easybuildrelease/" -i cmake/autocmake_safeguards.cmake CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} --- psi4-1.3.2/external/upstream/libint/CMakeLists.txt.orig 2020-02-26 15:21:03.800544908 +0100 +++ psi4-1.3.2/external/upstream/libint/CMakeLists.txt 2020-02-26 15:21:35.135596439 +0100 @@ -14,6 +14,7 @@ ExternalProject_Add(libint_external # "git checkout" fails on Windows, because of "*" in filenames (e.g. basis set files) URL https://github.com/evaleev/libint/archive/b13e71d3cf9960460c4019e5ecf2546a5f361c71.zip + PATCH_COMMAND sed -e "s/debug/easybuildrelease/" -i cmake/autocmake_safeguards.cmake CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} --- psi4-1.3.2/external/upstream/dkh/CMakeLists.txt.orig 2020-02-26 15:21:03.800544908 +0100 +++ psi4-1.3.2/external/upstream/dkh/CMakeLists.txt 2020-02-26 15:22:43.749709277 +0100 @@ -16,6 +16,7 @@ GIT_REPOSITORY https://github.com/psi4/dkh GIT_TAG v1.2 UPDATE_COMMAND "" + PATCH_COMMAND sed -e "s/debug/easybuildrelease/" -i cmake/autocmake_safeguards.cmake CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} --- psi4-1.3.2/external/upstream/libefp/CMakeLists.txt.orig 2020-02-26 15:21:03.800544908 +0100 +++ psi4-1.3.2/external/upstream/libefp/CMakeLists.txt 2020-02-26 15:23:21.038770601 +0100 @@ -17,6 +17,7 @@ GIT_REPOSITORY https://github.com/ilyak/libefp GIT_TAG 15cd7ce # v1.5.0 + 10 (docs and a cmake lapack patch) UPDATE_COMMAND "" + PATCH_COMMAND sed -e "s/debug/easybuildrelease/" -i cmake/autocmake_safeguards.cmake CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} --- psi4-1.3.2/external/upstream/gdma/CMakeLists.txt.orig 2020-02-26 15:21:03.800544908 +0100 +++ psi4-1.3.2/external/upstream/gdma/CMakeLists.txt 2020-02-26 15:24:08.662848920 +0100 @@ -16,6 +16,7 @@ GIT_REPOSITORY https://github.com/psi4/gdma GIT_TAG 9d607d7 # v2.2.6-2-g9d607d7 UPDATE_COMMAND "" + PATCH_COMMAND sed -e "s/debug/easybuildrelease/" -i cmake/autocmake_safeguards.cmake CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} --- psi4-1.3.2/external/upstream/libxc/CMakeLists.txt.orig 2020-02-26 15:21:03.801544909 +0100 +++ psi4-1.3.2/external/upstream/libxc/CMakeLists.txt 2020-02-26 15:24:46.702911478 +0100 @@ -15,6 +15,7 @@ GIT_REPOSITORY https://gitlab.com/libxc/libxc.git GIT_TAG 4.3.3 UPDATE_COMMAND "" + PATCH_COMMAND sed -e "s/debug/easybuildrelease/" -i cmake/autocmake_safeguards.cmake CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}