Update CMakeLists.txt

This commit is contained in:
Martin Kroeker 2024-10-16 15:21:39 +02:00 committed by GitHub
parent fd23aae405
commit 24b39a8af6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
endif()
if(WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O0")
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_cblas_helper.ps1
"$ErrorActionPreference = \"Stop\"\n"
"Get-Content $args[1] | & $args[0]\n"