Skip to content

Python: Fix Windows Output Dir Clash

Podhorszki, Norbert requested to merge github/fork/ax3l/fix-winPythonOutDir into master

Created by: ax3l

Avoid a naming conflict when building the python bindings with NMake and MSVC of the form

[100%] Linking CXX shared module ..\..\lib\python3.6\site-packages\adios2.cp36-win_amd64.pyd
LINK: command "C:\PROGRA~2\MI0E91~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\adios2py.dir\objects1.rsp /out:..\..\lib\python3.6\site-packages\adios2.cp36-win_amd64.pyd /implib:..\..\lib\adios2.lib /pdb:%SRC_DIR%\build\lib\python3.6\site-packages\adios2.pdb /dll /version:0.0 /machine:x64 /INCREMENTAL:NO %PREFIX%\libs\python36.lib -LTCG ..\..\lib\adios2.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:..\..\lib\python3.6\site-packages\adios2.cp36-win_amd64.pyd.manifest" failed (exit code 1149) with the following output:
LINK : fatal error LNK1149: output filename matches input filename '%SRC_DIR%\build\lib\adios2.lib'
NMAKE : fatal error U1077: 'C:\bld\adios2_1561968287896\_build_env\Library\bin\cmake.exe' : return code '0xffffffff'

Also fix the proper python installation directory CMAKE_INSTALL_PYTHONDIR on windows and make it overwriteable from the command line.

Merge request reports

Loading