Commit fadaa75d authored by jan.koester's avatar jan.koester
Browse files

test

parent 1eebb92a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ else()
    target_link_libraries(yamlconf PUBLIC confplus PRIVATE ${YAML_LIBRARIES} dl)
endif()

    install(TARGETS yamlconf DESTINATION lib/confplus/backend)
    install(TARGETS yamlconf DESTINATION RUNTIMES)

endif()

+1 −1
Original line number Diff line number Diff line
#ifdef Windows
#define CONFIGPATH "${CMAKE_INSTALL_PREFIX}/lib/confplus/backend/"
#define CONFIGPATH ""
#else
#define CONFIGPATH "${CMAKE_INSTALL_PREFIX}/lib/confplus/backend/"
#endif
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#include "backend.h"

#ifdef Windows
#define WIN32_LEAN_AND_MEAN
#include <windows.h> 
#else
#include <dlfcn.h>
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@
int main(int argc,char *argv[]){
    try{
        confplus::Config conf(argv[1]);
        confplus::Config::ConfigData *domainkey=conf.getKey("/BLOGI/HTTP/BIND");
        confplus::Config::ConfigData *domainkey=conf.getKey("/AUTHDB/BIND");
        if(domainkey){
            std::cout << conf.getValue(domainkey,0) << std::endl;
        }