Skip to content

Commit

Permalink
Update cmake_layout to use path to generate the generator folder path (
Browse files Browse the repository at this point in the history
  • Loading branch information
tiger-chan authored May 16, 2022
1 parent f921551 commit 0eb405b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conan/tools/cmake/layout.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from conans.errors import ConanException


Expand All @@ -23,7 +25,7 @@ def cmake_layout(conanfile, generator=None, src_folder="."):
build_type = build_type.lower()
conanfile.folders.build = "cmake-build-{}".format(build_type)

conanfile.folders.generators = "build/generators"
conanfile.folders.generators = os.path.join("build", "generators")
conanfile.cpp.source.includedirs = ["include"]

if multi:
Expand Down

0 comments on commit 0eb405b

Please sign in to comment.