From 157cb2e975292672d5c8b0fa1587c2704303bedc Mon Sep 17 00:00:00 2001 From: trillian Date: Tue, 30 Jan 2024 08:41:10 +0200 Subject: [PATCH] use find_program() properly --- src/asar-tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asar-tests/CMakeLists.txt b/src/asar-tests/CMakeLists.txt index f90c8280..a28439ad 100644 --- a/src/asar-tests/CMakeLists.txt +++ b/src/asar-tests/CMakeLists.txt @@ -170,7 +170,7 @@ if(ASAR_GEN_DLL_TEST) target_compile_options(asar-csharp-test PRIVATE "/unsafe") set(ASAR_CS_TEST_EXEC "$") else() - find_program(ASAR_CS_COMPILER csc mono-csc mcs) + find_program(ASAR_CS_COMPILER NAMES csc mono-csc mcs) set(ASAR_CS_TEST_EXEC "${CMAKE_CURRENT_BINARY_DIR}/asar-csharp-test.exe") add_custom_command(OUTPUT "${ASAR_CS_TEST_EXEC}" COMMAND ${ASAR_CS_COMPILER} "-out:${ASAR_CS_TEST_EXEC}" -unsafe "${ASAR_CS_SOURCES}"