mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
hopefully fix bin2c for msvc
Prefix destination bin2c.exe with ${CMAKE_BINARY_DIR} so that it doesn't try to use whatever its current directory is.
This commit is contained in:
@@ -18,7 +18,7 @@ function(host_compile src dst_cmd)
|
||||
set(compile_command cc ${src} -o ${dst} ${link_flags})
|
||||
else()
|
||||
# special case for Visual Studio
|
||||
set(compile_command cl ${src} /link "/out:${dst}")
|
||||
set(compile_command cl ${src} /link "/out:${CMAKE_BINARY_DIR}/${dst}")
|
||||
endif()
|
||||
|
||||
execute_process(COMMAND ${compile_command} OUTPUT_VARIABLE compile_out ERROR_VARIABLE compile_out RESULT_VARIABLE compile_result)
|
||||
|
Reference in New Issue
Block a user