Skip to content

Commit

Permalink
Merge pull request #13 from aminya/fix-conan-options
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Oct 23, 2021
2 parents 6e98aa8 + 3496a2c commit 7c2cfcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Conan.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
macro(run_conan options)
macro(run_conan)
# Download automatically, you can also just copy the conan.cmake file
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
Expand Down Expand Up @@ -45,7 +45,7 @@ macro(run_conan options)
PATH_OR_REFERENCE ${CMAKE_SOURCE_DIR}
BUILD missing
# Pass compile-time configured options into conan
OPTIONS ${options}
OPTIONS ${cmakelib_CONAN_OPTIONS}
SETTINGS ${settings})
endforeach()

Expand Down
2 changes: 1 addition & 1 deletion src/Index.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ macro(cmakelib)

if(${cmakelib_ENABLE_CONAN})
include("${CMAKELIB_SRC_DIR}/Conan.cmake")
run_conan(${cmakelib_CONAN_OPTIONS})
run_conan()
endif()

if(${cmakelib_ENABLE_UNITY})
Expand Down

0 comments on commit 7c2cfcd

Please sign in to comment.