Skip to content

Commit

Permalink
Update ConanHandle.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
traversebitree committed Feb 2, 2024
1 parent ccb5ad7 commit 91bf7f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Automatically copies the dynamic library (`.dll`) from `conan` to the same direc

### NOTICE
- Put `VcpkgHandle.cmake` **before** `project()`.
- Put `ConanHandle.cmake` **after** `project()`.
- Put `ConanHandle.cmake` **after** `set(CMAKE_CXX_STANDARD <std>)`.
- `VcpkgHandle.cmake` is paired with `vcpkg.json`.
- `ConanHandle.cmake` is paired with `conanfile.txt`.

Expand Down
3 changes: 2 additions & 1 deletion cmake/ConanHandle.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ execute_process(
COMMAND
${_CONAN_EXEC} "install" "${CMAKE_CURRENT_SOURCE_DIR}" "--output-folder=${_CONAN_BUILD_ROOT_PATH}"
"--build=missing" "--settings:host=build_type=${CMAKE_BUILD_TYPE}"
"--settings:build=build_type=${CMAKE_BUILD_TYPE}" COMMAND_ERROR_IS_FATAL LAST
"--settings:host=compiler.cppstd=${CMAKE_CXX_STANDARD}" "--settings:build=build_type=${CMAKE_BUILD_TYPE}"
"--settings:build=compiler.cppstd=${CMAKE_CXX_STANDARD}" COMMAND_ERROR_IS_FATAL LAST
)
list(APPEND CMAKE_PREFIX_PATH "${_CONAN_BUILD_ROOT_PATH}")

0 comments on commit 91bf7f2

Please sign in to comment.