Skip to content

Commit

Permalink
Use CMAKE_COMMAND variable instead of plain cmake executable
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-park committed Apr 12, 2024
1 parent 31ecbcd commit ea52e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ if(ZLIB_TEST AND NOT CMAKE_CROSSCOMPILING)
GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/test_${target}.cmake
CONTENT
"execute_process(
COMMAND cmake -E echo hello world
COMMAND \${CMAKE_COMMAND} -E echo hello world
COMMAND $<TARGET_FILE:${target}>
COMMAND $<TARGET_FILE:${target}> -d
COMMAND_ERROR_IS_FATAL ANY
Expand Down

0 comments on commit ea52e5e

Please sign in to comment.