Displaying 6 results from an estimated 6 matches for "project_source_dir".
2012 Aug 03
2
[LLVMdev] Unable to build compiler-rt (Windows)
...san/lit_tests/CMakeLists.txt:1 (configure_lit_site_cfg):
Unknown CMake command "configure_lit_site_cfg".
-- Configuring incomplete, errors occurred!
I also tried placing it inside the LLVM tree in the "projects" subdir, to
no avail (same error). Adding
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../cmake/Modules)
at the top of the file, got rid of the first, not the subsequent errors.
The project is disabled in projects/CMakeLists.txt, so that probably
doesn't work either.
Is there any solution available?
Thanks,
Ruben
PS: please reply to my email address as well, I am not su...
2016 Apr 27
4
[cfe-dev] Fwd: Raising CMake minimum version to 3.4.3
...with CMake modules that change frequently
upstream is for the project to keep a local copy and have a check in place
to use CMake's version if new enough. For instance, in llvm's source tree:
cmake/modules/ExternalProject.cmake:
if(CMAKE_VERSION VERSION_LESS "3.5.1")
include(${PROJECT_SOURCE_DIR}/cmake/modules/newcmake/ExternalProject.cmake)
else()
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
endif()
cmake/modules/newcmake/ExternalProject.cmake - Copy of the
ExternalProject.cmake shipped with 3.5.1
Then in the top level CMakeLists.txt, just include(ExternalProject). It
will fi...
2019 May 09
0
CMake improvement suggestion
...ame targets as finding the dependencies out of tree. For
example:
cmake_minimum_required(VERSION 3.14)
project(opus-example VERSION 0.0.1 LANGUAGES CXX)
option(USE_SYSTEM_OPUS "Use the system opus" OFF)
if (USE_SYSTEM_OPUS)
find_package(Opus REQUIRED)
else ()
add_subdirectory(${PROJECT_SOURCE_DIR}/dependencies/opus)
endif()
add_executable(example ${PROJECT_SOURCE_DIR}/src/example.cpp)
target_link_libraries(example PRIVATE Opus::opus)
Using find_package to find Opus will create the Opus::opus target, but
adding the source code directly only adds opus. Aliasing opus to Opus::opus
lets you k...
2012 Aug 03
0
[LLVMdev] Unable to build compiler-rt (Windows)
...(configure_lit_site_cfg):
> Unknown CMake command "configure_lit_site_cfg".
> -- Configuring incomplete, errors occurred!
>
> I also tried placing it inside the LLVM tree in the "projects" subdir,
> to no avail (same error). Adding
> SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../cmake/Modules)
> at the top of the file, got rid of the first, not the subsequent errors.
>
> The project is disabled in projects/CMakeLists.txt, so that probably
> doesn't work either.
>
> Is there any solution available?
>
> Thanks,
>
> Ruben
>
> P...
2012 Aug 03
1
[LLVMdev] Unable to build compiler-rt (Windows)
...g):
>> Unknown CMake command "configure_lit_site_cfg".
>> -- Configuring incomplete, errors occurred!
>>
>> I also tried placing it inside the LLVM tree in the "projects" subdir, to
>> no avail (same error). Adding
>> SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../**cmake/Modules)
>> at the top of the file, got rid of the first, not the subsequent errors.
>>
>> The project is disabled in projects/CMakeLists.txt, so that probably
>> doesn't work either.
>>
>> Is there any solution available?
>>
>> Th...
2016 Apr 27
3
[cfe-dev] Fwd: Raising CMake minimum version to 3.4.3
Most of the comments I have are actually very well captured by Chandler's email, so I'm not going to pile on. I do have a few things to add.
Renato, in your most recent email you comment about differentiating *stable* vs random versions of CMake built from source. I believe as a community our recommendation should be that people download CMake sources from https://CMake.org/download/