mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
Since commit 0c141b0393 (try_compile: Record output location instead of
reverse computing it, 2022-08-31, v3.25.0-rc1~154^2) we always look for
the "Debug" configuration's output binary from the test project.
Restore looking for the `CMAKE_TRY_COMPILE_CONFIGURATION`.
Fixes: #24180
9 lines
264 B
CMake
9 lines
264 B
CMake
enable_language(C)
|
|
set(CMAKE_TRY_COMPILE_CONFIGURATION Release)
|
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/${try_compile_DEFS})
|
|
try_compile(RESULT
|
|
${try_compile_bindir_or_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/src.c
|
|
COPY_FILE "${CMAKE_CURRENT_BINARY_DIR}/out.bin"
|
|
)
|