Skip to content

Commit

Permalink
use find_program() properly
Browse files Browse the repository at this point in the history
  • Loading branch information
randomdude999 committed Jan 30, 2024
1 parent 3faf691 commit 157cb2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asar-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ if(ASAR_GEN_DLL_TEST)
target_compile_options(asar-csharp-test PRIVATE "/unsafe")
set(ASAR_CS_TEST_EXEC "$<TARGET_FILE:asar-csharp-test>")
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}"
Expand Down

0 comments on commit 157cb2e

Please sign in to comment.