-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_install use correct config in MSVC
- Loading branch information
Showing
7 changed files
with
78 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function(ginkgo_switch_windows_link lang from to) | ||
foreach(flag_var | ||
"CMAKE_${lang}_FLAGS" "CMAKE_${lang}_FLAGS_DEBUG" "CMAKE_${lang}_FLAGS_RELEASE" | ||
"CMAKE_${lang}_FLAGS_MINSIZEREL" "CMAKE_${lang}_FLAGS_RELWITHDEBINFO" | ||
) | ||
if(${flag_var} MATCHES "/${from}") | ||
string(REGEX REPLACE "/${from}" "/${to}" ${flag_var} "${${flag_var}}") | ||
endif(${flag_var} MATCHES "/${from}") | ||
if(${flag_var} MATCHES "-${from}") | ||
string(REGEX REPLACE "-${from}" "-${to}" ${flag_var} "${${flag_var}}") | ||
endif(${flag_var} MATCHES "-${from}") | ||
set(${flag_var} "${${flag_var}}" CACHE STRING "" FORCE) | ||
endforeach() | ||
endfunction() | ||
|
||
macro(ginkgo_switch_to_windows_static lang) | ||
ginkgo_switch_windows_link(${lang} "MD" "MT") | ||
endmacro() | ||
|
||
macro(ginkgo_switch_to_windows_dynamic lang) | ||
ginkgo_switch_windows_link(${lang} "MT" "MD") | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters