Skip to content

Commit 715c7b2

Browse files
committed
Delegate copy command to cmake binary.
The CMakeLists.txt was performing a `cp` command directly, which while it was not an issue on linux, if you build on Windows with cmake, it fails the build because the equivalent command is `copy`. I made it so we use the portable interface of the CMake binary to perform the copy across all targets, so it's portable.
1 parent a84fe1e commit 715c7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jbmc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ add_subdirectory(unit)
44

55
add_custom_target(java-models-library ALL
66
COMMAND mvn --quiet -Dmaven.test.skip=true package
7-
COMMAND cp target/core-models.jar ${CMAKE_CURRENT_SOURCE_DIR}/src/java_bytecode/library/
7+
COMMAND ${CMAKE_COMMAND} -E copy target/core-models.jar ${CMAKE_CURRENT_SOURCE_DIR}/src/java_bytecode/library/
88
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib/java-models-library
99
)
1010

0 commit comments

Comments
 (0)