diff --git a/client_server/CMakeLists.txt b/client_server/CMakeLists.txt index b5e9bd53f8..45d315fcc2 100644 --- a/client_server/CMakeLists.txt +++ b/client_server/CMakeLists.txt @@ -30,7 +30,9 @@ message("-- Found JSONCPP include dir: ${JSONCPP_INCLUDE_DIRS}") message("-- Found JSONCPP library dir: ${JSONCPP_LIBRARY_DIRS}") message("-- Found JSONCPP libraries : ${JSONCPP_LIBRARIES}") include_directories("${Boost_INCLUDE_DIRS}" ${PYTHON_INCLUDE_DIR}) +if(JSONCPP_INCLUDE_DIRS) include_directories("${JSONCPP_INCLUDE_DIRS}") +endif(JSONCPP_INCLUDE_DIRS) pkg_check_modules(UUID uuid REQUIRED) include_directories("${UUID_INCLUDE_DIRS}") @@ -71,5 +73,6 @@ set(INSTALL_LIB_DIR lib CACHE PATH "Installation directory for lib install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cadabra-server DESTINATION bin) install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cadabra2html DESTINATION bin) install(TARGETS cadabra_client LIBRARY DESTINATION "${INSTALL_LIB_DIR}") +install(TARGETS cadabra_server LIBRARY DESTINATION "${INSTALL_LIB_DIR}") diff --git a/client_server/Snoop.cc b/client_server/Snoop.cc index aacc9bef2c..6e4f05a1c4 100644 --- a/client_server/Snoop.cc +++ b/client_server/Snoop.cc @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include diff --git a/client_server/regexp_tester.cc b/client_server/regexp_tester.cc index 4b248dff96..c1e09c6b48 100644 --- a/client_server/regexp_tester.cc +++ b/client_server/regexp_tester.cc @@ -13,7 +13,8 @@ int main(int argc, char **argv) try { std::regex match(argv[1]); std::smatch res; - if(std::regex_search(std::string(argv[2]), res, match)) { + std::string arg = argv[2]; + if(std::regex_search(arg, res, match)) { for(unsigned int i=0; i T *get_pointer(std::shared_ptr p) { return p.get(); } +#ifdef __GNUG__ +} #endif #endif diff --git a/frontend/common/CMakeLists.txt b/frontend/common/CMakeLists.txt index f3629a6a83..7fd8ce972b 100644 --- a/frontend/common/CMakeLists.txt +++ b/frontend/common/CMakeLists.txt @@ -25,8 +25,11 @@ if(CMAKE_COMPILER_IS_GNUCXX) endif() # Create library +set(INSTALL_LIB_DIR lib CACHE PATH "Installation directory for libraries") include_directories(".") add_library(texengine SHARED TeXEngine.cc lodepng.cc exec-stream.cc) target_link_libraries(texengine ${Boost_LIBRARIES} pthread) add_executable(test_tex test_tex.cc) target_link_libraries(test_tex texengine) +install(TARGETS texengine LIBRARY DESTINATION "${INSTALL_LIB_DIR}") + diff --git a/frontend/gtkmm/CMakeLists.txt b/frontend/gtkmm/CMakeLists.txt index 0ebd42c9f3..2861c5fc87 100644 --- a/frontend/gtkmm/CMakeLists.txt +++ b/frontend/gtkmm/CMakeLists.txt @@ -14,7 +14,9 @@ include_directories(${GTKMM3_INCLUDE_DIRS}) link_directories(${GTKMM3_LIBRARY_DIRS}) add_definitions(${GTKMM3_CFLAGS_OTHER}) pkg_check_modules(JSONCPP jsoncpp REQUIRED) # libjsoncpp-dev +if(JSONCPP_INCLUDE_DIRS) include_directories("${JSONCPP_INCLUDE_DIRS}") +endif(JSONCPP_INCLUDE_DIRS) link_directories(${JSONCPP_LIBRARY_DIRS}) find_package(Boost 1.45.0 COMPONENTS system) set(Boost_USE_STATIC_LIBS OFF) diff --git a/frontend/gtkmm/NotebookWindow.cc b/frontend/gtkmm/NotebookWindow.cc index d969b1c3a4..e0b5445bf6 100644 --- a/frontend/gtkmm/NotebookWindow.cc +++ b/frontend/gtkmm/NotebookWindow.cc @@ -25,7 +25,7 @@ NotebookWindow::NotebookWindow() #ifdef __APPLE__ scale = 1.0; #else - settings = Gio::Settings::create("org.cinnamon.desktop.interface"); + settings = Gio::Settings::create("org.gnome.desktop.interface"); scale = settings->get_double("text-scaling-factor"); #endif engine.latex_packages.push_back("breqn");