if(CMAKE_BUILD_TYPE) set(_BTYPE ${CMAKE_BUILD_TYPE}) elseif(NOT BUILD_TYPE STREQUAL "") set(_BTYPE ${BUILD_TYPE}) endif() if(_BTYPE) if(${_BTYPE} MATCHES "Debug|_DEBUG") set(CONAN_FRAMEWORKS${SUFFIX} ${CONAN_FRAMEWORKS${SUFFIX}_DEBUG} ${CONAN_FRAMEWORKS${SUFFIX}...
Conan is changing the behaviour of a CMake project, it sets the output directories in macro(conan_output_dirs_setup). Regardless one like this or not: should there be set CMAKE_LIBRARY_OUTPUT_DIRECTORY too, just for completeness? Current...
The underlying problem is that a pure cmake build will put theconanbuildinfo.cmakeinto the relative path in the build folder while if the build is invoked usingconan createthe buildinfo file is in the root of the build folder. The problem might be with conan itself, but having multiple p...
cmake_minimum_required(VERSION 3.15) project(testing) set(CONAN_INSTALL_CMD "conan install") MESSAGE("COMMAND: ${CONAN_INSTALL_CMD} ${CMAKE_CURRENT_SOURCE_DIR}") execute_process(COMMAND bash -c "${CONAN_INSTALL_CMD} ${CMAKE_CURRENT_SOURCE_DIR}" RESULT_VARIABLE CMD_ERROR) MESSAGE( STATUS...
However, when I now try to package up my project by running, from the source directory,conan create ., I get errors originating fromconan.cmakethat it cannot findconanbuildinfo.cmake. I have an example below that I've tried my best to make minimal, to demonstrate the problem. ...
set(_CONANBUILDINFOFOLDER ${ARGUMENTS_INSTALL_FOLDER}) else() set(_CONANBUILDINFOFOLDER ${CMAKE_CURRENT_BINARY_DIR}) find_path(_CONANBUILDINFOFOLDER NAMES ${_CONANBUILDINFO} PATHS ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} NO_DEFAULT_PATH) endif() # Checks for the existence of...
options.fPIC def build_requirements(self): self.build_requires("doctest/2.3.8") def source(self): pass def build(self): pass def package(self): pass def package_info(self): pass Run conan install . --profile:host=default --profile:build=default The generated conanbuildinfo.cmake does ...
5 changes: 4 additions & 1 deletion 5 conan.cmake Original file line numberDiff line numberDiff line change @@ -450,7 +450,10 @@ macro(conan_load_buildinfo) if(ARGUMENTS_INSTALL_FOLDER) set(_CONANBUILDINFOFOLDER ${ARGUMENTS_INSTALL_FOLDER}) else() set(_CONANBUILDINFOFOLDER ${CMAKE_...
set(_CONANBUILDINFOFOLDER ${ARGUMENTS_INSTALL_FOLDER}) else() set(_CONANBUILDINFOFOLDER ${CMAKE_CURRENT_BINARY_DIR}) find_path(_CONANBUILDINFOFOLDER NAMES ${_CONANBUILDINFO} PATHS ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} NO_DEFAULT_PATH) endif() # Checks for the existence of...