File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,15 +124,15 @@ elseif (WIN32)
124124
125125 if (MSVC )
126126 # detect target architecture
127- file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /arch.cpp " [=[
127+ file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /arch.c " [=[
128128 #if defined _M_IX86
129129 #error ARCH_VALUE x86_32
130130 #elif defined _M_X64
131131 #error ARCH_VALUE x86_64
132132 #endif
133133 #error ARCH_VALUE unknown
134134 ]=])
135- try_compile (_UNUSED_VAR "${CMAKE_CURRENT_BINARY_DIR} " "${CMAKE_CURRENT_BINARY_DIR} /arch.cpp "
135+ try_compile (_UNUSED_VAR "${CMAKE_CURRENT_BINARY_DIR} " "${CMAKE_CURRENT_BINARY_DIR} /arch.c "
136136 OUTPUT_VARIABLE _COMPILATION_LOG
137137 )
138138 string (REGEX REPLACE ".*ARCH_VALUE ([a-zA-Z0-9_]+).*" "\\ 1" _TARGET_ARCH "${_COMPILATION_LOG} " )
You can’t perform that action at this time.
0 commit comments