File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ function(libomp_get_architecture return_arch)
71
71
file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /libomp_detect_arch.c" ${detect_arch_src_txt} )
72
72
73
73
# Try to compile using the C Compiler. It will always error out with an #error directive, so store error output to ${local_architecture}
74
- try_compile (compile_dummy "${CMAKE_CURRENT_BINARY_DIR} " "${CMAKE_CURRENT_BINARY_DIR} /libomp_detect_arch.c" OUTPUT_VARIABLE local_architecture )
74
+ try_compile (compile_dummy "${CMAKE_CURRENT_BINARY_DIR} " SOURCES "${CMAKE_CURRENT_BINARY_DIR} /libomp_detect_arch.c" OUTPUT_VARIABLE local_architecture )
75
75
76
76
# Match the important architecture line and store only that matching string in ${local_architecture}
77
77
string (REGEX MATCH "ARCHITECTURE=([a-zA-Z0-9_]+)" local_architecture "${local_architecture} " )
You can’t perform that action at this time.
0 commit comments