Skip to content

c++ 20 module library cannot be found #5825

Answered by Arthapz
hexne asked this question in Q&A
Discussion options

You must be logged in to vote

ur package is not correct and u missed the configs = { module = true } in ur add_requires

here the correct version

-- nelib package
package("nelib")
    set_kind("library")
    set_homepage("https://github.com/hexne/nelib")
    set_description("A commonly used tool collection library")

    add_urls("https://github.com/hexne/NeLib.git")
    add_versions("2024.11.10", "6ec115b4cc87556809567413d1ab94c303179737")

    add_configs("modules", {description = "Build with C++20 modules support.", default = false, type = "boolean"})
    add_configs("header_only", {description = "Build as a headeronly library.", default = false, type = "boolean"})
    set_policy("package.cmake_generator.ninja", true)…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@hexne
Comment options

@Arthapz
Comment options

@hexne
Comment options

@hexne
Comment options

Answer selected by hexne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants