at 18.03-beta 26 lines 1.1 kB view raw
1diff --git i/CMake/config.cmake w/CMake/config.cmake 2index 28f8047..c596cf8 100644 3--- i/CMake/config.cmake 4+++ w/CMake/config.cmake 5@@ -95,7 +95,7 @@ else() 6 find_package(LibXml2 REQUIRED) 7 find_package(CURL REQUIRED) 8 set(Boost_NO_BOOST_CMAKE ON) 9- set(Boost_USE_STATIC_LIBS ON) 10+ set(Boost_USE_STATIC_LIBS OFF) 11 find_package(Boost COMPONENTS program_options filesystem system thread regex date_time REQUIRED) 12 13 # add include directories 14diff --git i/src/libsrcml/srcml_reader_handler.hpp w/src/libsrcml/srcml_reader_handler.hpp 15index 0b23fed..c02dfef 100644 16--- i/src/libsrcml/srcml_reader_handler.hpp 17+++ w/src/libsrcml/srcml_reader_handler.hpp 18@@ -456,7 +456,7 @@ public : 19 20 if(uri == SRCML_CPP_NS_URI) { 21 22- if(archive->language != 0) { 23+ if(srcml_check_language(archive->language->c_str()) != 0) { 24 25 if(*archive->language == "C++" || *archive->language == "C" || *archive->language == "Objective-C") 26 archive->options |= SRCML_OPTION_CPP | SRCML_OPTION_CPP_NOMACRO;