Skip to content

Commit

Permalink
Merge pull request #670 from thelfer/654-add-powershell-environment-v…
Browse files Browse the repository at this point in the history
…ariable

654 add powershell environment variable
  • Loading branch information
thelfer authored Dec 21, 2024
2 parents 71e1263 + af19209 commit 0f1a65d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,13 @@ if(CMAKE_HOST_WIN32 OR CYGWIN OR MSYS)
set(TFEL_CONF_DIR "/${conf}")
configure_file(env-win32.sh.in env-${conf}.sh @ONLY)
configure_file(env-win32.bat.in env-${conf}.bat @ONLY)
configure_file(env-win32.ps1.in env-${conf}.ps1 @ONLY)
endforeach(conf ${CMAKE_CONFIGURATION_TYPES})
else(CMAKE_CONFIGURATION_TYPES)
set(TFEL_CONF_DIR "")
configure_file(env-win32.sh.in env.sh @ONLY)
configure_file(env-win32.bat.in env.bat @ONLY)
configure_file(env-win32.ps1.in env.ps1 @ONLY)
endif(CMAKE_CONFIGURATION_TYPES)
endif(CMAKE_HOST_WIN32 OR CYGWIN OR MSYS)

Expand Down
13 changes: 13 additions & 0 deletions env-win32.ps1.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\mtest\src@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\mfront\src@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\NUMODIS@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Material@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Tests@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Math@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Utilities@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Exception@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Glossary@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\System@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Config@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\PhysicalConstants@TFEL_CONF_DIR@;' + $env:Path
$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\UnicodeSupport@TFEL_CONF_DIR@;' + $env:Path

0 comments on commit 0f1a65d

Please sign in to comment.