ainvyu / vcxproj2cmake

Convert Visual studio 2010 project(vcxproj) to CMakeFile.txt

Home Page:http://nving.tistory.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CmakeList.txt isnt being generated

rajpra opened this issue · comments

Hi, When i run:
perl vcxproj2cmake.pl myproject1.vcxproj "\Debug"

i get
Use of uninitialized value $add_dep in substitution (s///) at vcxproj2cmake.pl line 386.
Use of uninitialized value $add_dep in split at vcxproj2cmake.pl line 388.
$VAR1 = '..';
$VAR2 = '$(SolutionDir)x_other_libs';
$VAR3 = '.';
$VAR1 = 'package';
$VAR2 = 'Boost';
$VAR3 = 'package_upcase';
$VAR4 = 'BOOST';
$VAR1 = 'flter';
$VAR2 = 'Strategies\something\something';
$VAR3 = 'files';
$VAR4 = '';
$VAR1 = 'flter';
$VAR2 = 'interactions';
$VAR3 = 'files';
$VAR4 = '';
$VAR1 = 'flter';
$VAR2 = 'Strategies\Other';
$VAR3 = 'files';
$VAR4 = '';
$VAR1 = 'files';
$VAR2 = '';
$VAR3 = 'flter';
$VAR4 = 'Strategies\something\thing\somes';
$VAR1 = 'flter';
......
$VAR20 = '-DWIN32
-D_DEBUG
-D_CONSOLE';

but no file.
do i need to pipe it to a file or is something not being written correctly?

try to replace the line 386 content:
$add_dep =~ s{}{/}g;
with:
if($add_dep)
$add_dep =~ s{}{/}g;

i replaced with:
if ( $add_dep ) {
$add_dep =~ s{}{/}g;
}

but now i get:
Invalid range "e->" in transliteration operator at vcxproj2cmake.pl line 393.

which is:
warn Dumper(@includes);

Any ideas?