diff options
author | Raul Tambre <raul@tambre.ee> | 2021-03-13 13:37:19 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-03-17 15:51:56 (GMT) |
commit | 56c759b000ab5041aff9a92d51a6cc471e7d34a4 (patch) | |
tree | c8b181920834eaa63970012a4f0bd848d11078ff /Modules/Platform/Windows-df.cmake | |
parent | 982f7bb5063453d3c0be102c917bb660ec21978b (diff) | |
download | CMake-56c759b000ab5041aff9a92d51a6cc471e7d34a4.zip CMake-56c759b000ab5041aff9a92d51a6cc471e7d34a4.tar.gz CMake-56c759b000ab5041aff9a92d51a6cc471e7d34a4.tar.bz2 |
Per-language Win32/Console flags
Allows using different compilers with different flags for different languages.
For example Clang with GNU-like commandline for CXX and MSVC as host compiler
for CUDA.
Should help with #21914.
Diffstat (limited to 'Modules/Platform/Windows-df.cmake')
-rw-r--r-- | Modules/Platform/Windows-df.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Windows-df.cmake b/Modules/Platform/Windows-df.cmake index 8b824bc..c823423 100644 --- a/Modules/Platform/Windows-df.cmake +++ b/Modules/Platform/Windows-df.cmake @@ -27,8 +27,8 @@ set(CMAKE_Fortran_COMPILE_OBJECT set(CMAKE_Fortran_LINK_EXECUTABLE "<CMAKE_Fortran_COMPILER> ${CMAKE_CL_NOLOGO} ${CMAKE_START_TEMP_FILE} <FLAGS> /exe:<TARGET> <OBJECTS> /link <CMAKE_Fortran_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>${CMAKE_END_TEMP_FILE}") -set(CMAKE_CREATE_WIN32_EXE /winapp) -set(CMAKE_CREATE_CONSOLE_EXE ) +set(CMAKE_Fortran_CREATE_WIN32_EXE /winapp) +set(CMAKE_Fortran_CREATE_CONSOLE_EXE ) # does the compiler support pdbtype and is it the newer compiler |