Skip to content

Commit 42bda27

Browse files
authored
Merge pull request #86 from alicevision/fix/apps_win
Examples on windows
2 parents 376979c + fcc9264 commit 42bda27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ install:
2020
before_build:
2121
- md build
2222
- cd build
23-
- cmake -G "Visual Studio 14 2015" -A x64 -T v140,host=x64 -DPopSift_BUILD_EXAMPLES:BOOL=OFF -DCMAKE_BUILD_TYPE=%configuration% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
23+
- cmake -G "Visual Studio 14 2015" -A x64 -T v140,host=x64 -DPopSift_BUILD_EXAMPLES:BOOL=ON -DCMAKE_BUILD_TYPE=%configuration% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
2424
- ls -l
2525

2626
build:

src/application/pgmread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ unsigned char* readPGMfile( const string& filename, int& w, int& h )
3838
{
3939
boost::filesystem::path input_file( filename );
4040

41-
if( not boost::filesystem::exists( input_file ) ) {
41+
if( ! boost::filesystem::exists( input_file ) ) {
4242
cerr << "File " << input_file << " does not exist" << endl;
4343
return nullptr;
4444
}
4545

4646
ifstream pgmfile( filename.c_str(), ios::binary );
47-
if( not pgmfile.is_open() ) {
47+
if( ! pgmfile.is_open() ) {
4848
cerr << "File " << input_file << " could not be opened for reading" << endl;
4949
return nullptr;
5050
}

0 commit comments

Comments
 (0)