Ignore:
Timestamp:
09/15/11 13:39:16 (8 years ago)
Author:
hinerm
Message:

Fix for CMakeLists.vm - slash correction

The code to convert backslashes to forward slahses wasn't properly
using the CMake STRING(REGEX REPLACE...) syntax.

It now properly stores the replaced string in a variable, and references
that variable appropriately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/jar2lib/src/main/resources/CMakeLists.vm

    r7755 r7756  
    294294#set ($jarName = $jarFile.getName()) 
    295295# copy ${jarName} 
    296 STRING(REGEX REPLACE "\\\\" "/" jarName ${jarName}) 
    297 add_custom_command( 
    298   TARGET ${projectId} 
    299   DEPENDS "${jarFile}" 
    300   POST_BUILD 
    301   COMMAND ${CMAKE_COMMAND} -E copy 
    302   "${jarFile}" 
     296STRING(REGEX REPLACE "\\\\" "/" J2L_JAR_NAME ${jarFile}) 
     297add_custom_command( 
     298  TARGET ${projectId} 
     299  DEPENDS "${J2L_JAR_NAME}" 
     300  POST_BUILD 
     301  COMMAND ${CMAKE_COMMAND} -E copy 
     302  "${J2L_JAR_NAME}" 
    303303  "${CMAKE_BINARY_DIR}/${Jar2Lib_DIST_DIR}/${Jar2Lib_DEPS_DIR}/${jarName}" 
    304304  VERBATIM 
Note: See TracChangeset for help on using the changeset viewer.