Commit 2e4e795b authored by jan.koester's avatar jan.koester
Browse files

test

parent 114a835e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ include_directories(
find_package(YAML REQUIRED)

# The conditional check needs a standard CMake variable check, not a dereference.
if(YAML_FOUND) 
    set( yamlconfsrc "yaml/yamlconf.cpp")
    add_library(yamlconf SHARED ${yamlconfsrc})

@@ -19,16 +18,15 @@ if(YAML_FOUND)

    if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
        # Ensure 'confplus' is linked as PRIVATE unless its interface is exposed
        target_link_libraries(yamlconf PRIVATE confplus ${LIBYAML_LIBRARY} kernel32.lib) 
        target_link_libraries(yamlconf PRIVATE confplus yaml::yaml kernel32.lib) 
    else()
        target_link_libraries(yamlconf PRIVATE confplus ${LIBYAML_LIBRARY} dl) 
        target_link_libraries(yamlconf PRIVATE confplus  yaml::yaml dl) 
    endif()
    
    install(TARGETS yamlconf
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib/confplus/backend NAMELINK_SKIP
    )
endif()

# --- INIPARSER BACKEND (Corrected) ---
find_package(INIPARSER)