SET(BBFY_CXX_OUT ${CMAKE_CURRENT_BINARY_DIR}/${filename}.cxx)
IF (WIN32)
- set(command00 Path=%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH% )
+ SET(command00 Path=%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH% )
STRING(REPLACE "__RR__" "\;" command0 ${command00} )
- ELSEIF(WIN32)
- set(command0 " " )
+ SET(SETPATH "set ${command0} &&")
+ ELSE(WIN32)
+ SET(SETPATH "")
ENDIF(WIN32)
ADD_CUSTOM_COMMAND(
OUTPUT ${BBFY_CXX_OUT}
- COMMAND
- set ${command0} &&
- ${BBTK_BBFY} ${xmlfile} ${BBTK_PACKAGE_NAME} ${CMAKE_CURRENT_BINARY_DIR}/ -q
+ COMMAND
+ ${SETPATH} ${BBTK_BBFY} ${xmlfile} ${BBTK_PACKAGE_NAME} ${CMAKE_CURRENT_BINARY_DIR}/ -q
DEPENDS ${xmlfile}
${BBTK_BBFY_DEPENDENCY}
)
# IF(NOT ${BBTK_PACKAGE_NAME}_CXX_SOURCES MATCHES "${filename}")
- message ("EED Alert BBTKConfigurePackage_src " "IF NOT MATCHES" )
+ # message ("EED Alert BBTKConfigurePackage_src " "IF NOT MATCHES" )
SET(${BBTK_PACKAGE_NAME}_CXX_SOURCES
${${BBTK_PACKAGE_NAME}_CXX_SOURCES}
${filename}
${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
@ONLY
)
-
- set(command00 Path=%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH% )
+
+IF (WIN32)
+ SET(command00 Path=%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH% )
STRING(REPLACE "__RR__" "\;" command0 ${command00} )
+ SET(SETPATH "set ${command0} &&")
+ELSE (WIN32)
+ SET(SETPATH "")
+ENDIF (WIN32)
ADD_CUSTOM_COMMAND(
OUTPUT ${INDEX_OUTPUT}
COMMAND
- set ${command0} && cd ${BBTK_BIN_PATH} && ${BBTK_BBI} -N -q ${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
+ ${SETPATH} cd ${BBTK_BIN_PATH} && ${BBTK_BBI} -N -q ${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
DEPENDS ${BBTK_BBI_DEPENDENCY} ${BBTK_PACKAGES_DEPS}
)
ADD_CUSTOM_TARGET(bbdoc_index ALL