Skip to content

Commit

Permalink
hopefully fix bin2c for msvc
Browse files Browse the repository at this point in the history
Prefix destination bin2c.exe with ${CMAKE_BINARY_DIR} so that it doesn't
try to use whatever its current directory is.
  • Loading branch information
rkitover committed Sep 16, 2018
1 parent b9d0f81 commit 01a75e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/HostCompile.cmake
Expand Up @@ -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)
Expand Down

0 comments on commit 01a75e8

Please sign in to comment.