openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.97k stars 2.55k forks source link

Tiny fix : SolutionDir not ProjectDir #5016

Open elliotwoods opened 8 years ago

elliotwoods commented 8 years ago

The lines in

https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworksCompiled/proje ct/vs/openFrameworksDebug.props#L24 https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworksCompiled/project/vs/openFrameworksDebug.props#L41 https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworksCompiled/project/vs/openFrameworksRelease.props#L23 https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworksCompiled/project/vs/openFrameworksRelease.props#L39

should be

<Command>robocopy "$(OF_ROOT)/export/vs/$(Platform_Actual)/" "$(SolutionDir)bin/" "*.dll" /njs /njh /np /fp /bytes
if errorlevel 1 exit 0 else exit %errorlevel%</Command>

not

<Command>robocopy "$(OF_ROOT)/export/vs/$(Platform_Actual)/" "$(ProjectDir)bin/" "*.dll" /njs /njh /np /fp /bytes
if errorlevel 1 exit 0 else exit %errorlevel%</Command>

or just $(TargetDir)

Mostly this doesn't matter but it can matter if you're building DLL's from openFrameworks code (which are generally output to the solution dir, not the project dir)

arturoc commented 8 years ago

can you send a PR?