File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,15 @@ set(SBT_JAVA_OPTS
10
10
set (SBT "${Java_JAVA_EXECUTABLE} " ${SBT_JAVA_OPTS} -Dfile.encoding =UTF-8
11
11
-jar "${CMAKE_CURRENT_SOURCE_DIR} /sbt-launch.jar" )
12
12
13
- add_custom_target (bootcompiler
14
- ALL
13
+ file (GLOB_RECURSE bootcompiler_sources src/*)
14
+ add_custom_command ( OUTPUT " ${CMAKE_CURRENT_BINARY_DIR} /bootcompiler.jar"
15
15
COMMAND ${SBT} one-jar
16
- COMMAND ${CMAKE_COMMAND} -E copy_if_different
16
+ COMMAND ${CMAKE_COMMAND} -E copy
17
17
"${CMAKE_CURRENT_SOURCE_DIR} /target/scala-2.9.1/bootcompiler_2.9.1-2.0-SNAPSHOT-one-jar.jar"
18
18
"${CMAKE_CURRENT_BINARY_DIR} /bootcompiler.jar"
19
19
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
20
+ DEPENDS "sbt-launch.jar" "build.sbt" "project/plugins.sbt" ${bootcompiler_sources}
20
21
COMMENT "Building the bootcompiler"
21
22
VERBATIM )
23
+
24
+ add_custom_target (bootcompiler DEPENDS "${CMAKE_CURRENT_BINARY_DIR} /bootcompiler.jar" )
You can’t perform that action at this time.
0 commit comments