SET(_script ${CMAKE_CURRENT_BINARY_DIR}/${script})
ENDIF()
+ IF(WIN32)
+ SET(_ext "bat")
+ SET(_call_cmd "call")
+ ELSE()
+ SET(_ext "sh")
+ SET(_call_cmd ".")
+ ENDIF()
+
SET(_env)
FOREACH(_item ${_${PROJECT_NAME}_EXTRA_ENV})
FOREACH(_val ${_${PROJECT_NAME}_EXTRA_ENV_${_item}})
IF(${_item} STREQUAL "LD_LIBRARY_PATH")
SET(_item PATH)
ENDIF()
- STRING(REPLACE "/" "\\" _env "${_env} @SET ${_item}=${_val};%${_item}%\n")
- SET(_ext "bat")
- SET(_call_cmd "call")
+ STRING(REPLACE "/" "\\" _env "${_env} @SET ${_item}=${_val};%${_item}%\n")
ELSE(WIN32)
SET(_env "${_env} export ${_item}=${_val}:\${${_item}}\n")
- SET(_ext "sh")
- SET(_call_cmd ".")
ENDIF(WIN32)
ENDFOREACH()
ENDFOREACH()