Escape $ in env lookup to preserve the command.
@@ -543,7 +543,7 @@ endfunction()
function(install_java_artifact_dependencies NAME)
install(DIRECTORY "target/dependency/" DESTINATION lib/jars/${NAME} FILES_MATCHING PATTERN "*.jar")
- install(CODE "execute_process(COMMAND bash -c \"cd $ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/lib/jars && ln -sf ${NAME}/*.jar .\")")
+ install(CODE "execute_process(COMMAND bash -c \"cd \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/lib/jars && ln -sf ${NAME}/*.jar .\")")
endfunction()
function(install_fat_java_artifact NAME)
@@ -551,7 +551,7 @@ function(install_fat_java_artifact NAME)
endfunction()
function(install_symlink TARGET LINK)
- install(CODE "execute_process(COMMAND ln -sf ${CMAKE_INSTALL_PREFIX}/${TARGET} $ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${LINK})")
+ install(CODE "execute_process(COMMAND ln -sf ${CMAKE_INSTALL_PREFIX}/${TARGET} \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${LINK})")
endfunction(install_symlink)
function(add_auxilliary_modules)
