Changes to build natively on windows (using mingw-w64 toolchain)
This commit is contained in:
		| @@ -33,7 +33,6 @@ target_include_directories(couchlib | |||||||
| file(COPY LICENSE CORRESPONDINGSOURCE.txt DESTINATION "${CMAKE_CURRENT_BINARY_DIR}") | file(COPY LICENSE CORRESPONDINGSOURCE.txt DESTINATION "${CMAKE_CURRENT_BINARY_DIR}") | ||||||
|  |  | ||||||
| if(WIN32) | if(WIN32) | ||||||
|   target_link_libraries(couch glfw3dll) |  | ||||||
|   target_link_libraries(couch ssp) |   target_link_libraries(couch ssp) | ||||||
|   set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++") |   set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++") | ||||||
| endif(WIN32) | endif(WIN32) | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ open my $fout, '>', $outfilename; | |||||||
| print $fout "#ifndef $headerguard \n#define $headerguard\nconst char * $constname = \n"; | print $fout "#ifndef $headerguard \n#define $headerguard\nconst char * $constname = \n"; | ||||||
|  |  | ||||||
| while(my $line = <$fin>) { | while(my $line = <$fin>) { | ||||||
|     $line =~ s/\n/\\n/; |     $line =~ s/(\r?\n)/\\n/; | ||||||
|     print $fout "\"$line\"\n"; |     print $fout "\"$line\"\n"; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user