diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-10 11:51:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-10 11:56:55 +0200 |
commit | c1cbf905c0459681d6bc34579bfcf90f838d8f58 (patch) | |
tree | fd41f9138a00e9ef285909a7899baae7515c1722 /userconfig-sthalik@Windows-MSVC.cmake | |
parent | fb5dca7ee80621fe17e9ab542a7c4fe521ba4193 (diff) |
cmake: don't require msvc wrapper invocation
Diffstat (limited to 'userconfig-sthalik@Windows-MSVC.cmake')
-rw-r--r-- | userconfig-sthalik@Windows-MSVC.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/userconfig-sthalik@Windows-MSVC.cmake b/userconfig-sthalik@Windows-MSVC.cmake index 6aa18c10..72834103 100644 --- a/userconfig-sthalik@Windows-MSVC.cmake +++ b/userconfig-sthalik@Windows-MSVC.cmake @@ -15,6 +15,20 @@ sets(BOOL FLOORMAT_SUBMODULE-SDL2 ON) add_link_options(-STACK:41943040) +if(CMAKE_SIZEOF_VOID_P GREATER 4) + set(CMAKE_C_COMPILER_LAUNCHER msvc64.cmd) + set(CMAKE_CXX_COMPILER_LAUNCHER msvc64.cmd) + set(CMAKE_C_LINKER_LAUNCHER msvc64.cmd) + set(CMAKE_CXX_LINKER_LAUNCHER msvc64.cmd) + set(CMAKE_RC_COMPILER_LAUNCHER msvc64.cmd) +else() + set(CMAKE_C_COMPILER_LAUNCHER msvc.cmd) + set(CMAKE_CXX_COMPILER_LAUNCHER msvc.cmd) + set(CMAKE_C_LINKER_LAUNCHER msvc.cmd) + set(CMAKE_CXX_LINKER_LAUNCHER msvc.cmd) + set(CMAKE_RC_COMPILER_LAUNCHER msvc.cmd) +endif() + function(fm-userconfig-external) if(CMAKE_BUILD_TYPE STREQUAL "DEBUG") sets(BOOL |