Changeset 7775 for trunk/projects


Ignore:
Timestamp:
09/19/11 15:22:18 (8 years ago)
Author:
hinerm
Message:

Added Build path consideration to EXE files

The templated code for exe files in a project were not
considering the build type (in MS visual studio) thus
causing the post-build copies to fail.

This fix included a typo correction for the Debug path
macro, so that either build type can be easily supported.

File:
1 edited

Legend:

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

    r7773 r7775  
    115115 
    116116# Building in Debug mode is not currently supported in this script 
    117 #  set(J2L_BUILD TYPE /Debug) 
     117#  set(J2L_BUILD_TYPE /Debug) 
    118118 
    119119  if(NOT DEFINED J2L_SUFFIX) 
     
    134134 
    135135#  Builing with Debug mode on Windows is not currently supported in this script. 
    136 #  set(J2L_BUILD TYPE /Debug) 
     136#  set(J2L_BUILD_TYPE /Debug) 
    137137 
    138138  if(NOT DEFINED J2L_SUFFIX) 
     
    317317add_custom_command( 
    318318  TARGET ${execName} 
    319   DEPENDS "${CMAKE_BINARY_DIR}/${execName}${J2L_EXE_SUFFIX}" 
    320   POST_BUILD 
    321   COMMAND ${CMAKE_COMMAND} -E copy 
    322   "${CMAKE_BINARY_DIR}/${execName}${J2L_EXE_SUFFIX}" 
     319  DEPENDS "${CMAKE_BINARY_DIR}${J2L_BUILD_TYPE}/${execName}${J2L_EXE_SUFFIX}" 
     320  POST_BUILD 
     321  COMMAND ${CMAKE_COMMAND} -E copy 
     322  "${CMAKE_BINARY_DIR}${J2L_BUILD_TYPE}/${execName}${J2L_EXE_SUFFIX}" 
    323323  "${CMAKE_BINARY_DIR}/${Jar2Lib_DIST_DIR}/${execName}${J2L_EXE_SUFFIX}" 
    324324  VERBATIM 
Note: See TracChangeset for help on using the changeset viewer.