search for: cmake_cxx_standard_requir

Displaying 11 results from an estimated 11 matches for "cmake_cxx_standard_requir".

2016 Oct 20
2
Leveraging newer CMake features for Language standards
...and CXX_STANDARD_REQUIRED target properties. If set appropriately on a given target then the approiate compiler flags for that language standard as known by CMake with be applied. You can set the global default for this by defining in teh cop level CMakeLists.txt: set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED True) Unrelated but in a similar situation is the -fPIC flag. The POSITION_INDEPENDENT_CODE target proeprty is available, which can be initialized toa default value with: set(CMAKE_POSITION_INDEPENDENT_CODE True) What are peoples thoughts about reducing HandleLLVMOptions.cmake to factor out a...
2020 May 15
2
Building A Project Against LLVM
...I'm not sure what to try next. Is there additional documentation somewhere for how to "install" a current release of LLVM correctly? For reference here's my final CMakeLists.txt file: cmake_minimum_required(VERSION 3.10) project(CBreakCompiler) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED True) add_compile_options(-Wall) find_package(LLVM 10.0.0 REQUIRED CONFIG) message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") include_directories(${LLVM_INCLUDE_DIRS}) add_definitions(${LLVM_DEFINITIONS}) add_execu...
2020 Nov 17
10
wasteful cmake defaults
...nja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total and then: $ git apply <<'EOF' diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 21563e15118..3f5821351a1 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -55,8 +55,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED YES) set(CMAKE_CXX_EXTENSIONS NO) if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) - message(STATUS "No build type selected, default to Debug") - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (default Debug)" FORCE)...
2020 Nov 18
1
wasteful cmake defaults
...; and then: >> >> $ git apply <<'EOF' >> diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt >> index 21563e15118..3f5821351a1 100644 >> --- a/llvm/CMakeLists.txt >> +++ b/llvm/CMakeLists.txt >> @@ -55,8 +55,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED YES) >> set(CMAKE_CXX_EXTENSIONS NO) >> >> if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) >> - message(STATUS "No build type selected, default to Debug") >> - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Bu...
2020 May 16
2
Building A Project Against LLVM
...> documentation somewhere for how to "install" a current release of LLVM > correctly? > > > For reference here's my final CMakeLists.txt file: > > cmake_minimum_required(VERSION 3.10) > > project(CBreakCompiler) > > set(CMAKE_CXX_STANDARD 17) > set(CMAKE_CXX_STANDARD_REQUIRED True) > add_compile_options(-Wall) > > find_package(LLVM 10.0.0 REQUIRED CONFIG) > > message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") > message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") > > include_directories(${LLVM_INCLUDE_DIRS}) > add_d...
2020 Nov 17
0
wasteful cmake defaults
...095% cpu 10:45.78 total > > and then: > > $ git apply <<'EOF' > diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt > index 21563e15118..3f5821351a1 100644 > --- a/llvm/CMakeLists.txt > +++ b/llvm/CMakeLists.txt > @@ -55,8 +55,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED YES) > set(CMAKE_CXX_EXTENSIONS NO) > > if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) > - message(STATUS "No build type selected, default to Debug") > - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (default Debug...
2020 Nov 18
0
wasteful cmake defaults
...cpu 10:45.78 total > > and then: > > $ git apply <<'EOF' > diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt > index 21563e15118..3f5821351a1 100644 > --- a/llvm/CMakeLists.txt > +++ b/llvm/CMakeLists.txt > @@ -55,8 +55,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED YES) > set(CMAKE_CXX_EXTENSIONS NO) > > if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) > - message(STATUS "No build type selected, default to Debug") > - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (default &g...
2020 Nov 17
0
wasteful cmake defaults
...cpu 10:45.78 total > > and then: > > $ git apply <<'EOF' > diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt > index 21563e15118..3f5821351a1 100644 > --- a/llvm/CMakeLists.txt > +++ b/llvm/CMakeLists.txt > @@ -55,8 +55,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED YES) > set(CMAKE_CXX_EXTENSIONS NO) > > if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) > - message(STATUS "No build type selected, default to Debug") > - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (default De...
2020 May 16
2
Building A Project Against LLVM
...gt;>> correctly? >>> >>> >>> For reference here's my final CMakeLists.txt file: >>> >>> cmake_minimum_required(VERSION 3.10) >>> >>> project(CBreakCompiler) >>> >>> set(CMAKE_CXX_STANDARD 17) >>> set(CMAKE_CXX_STANDARD_REQUIRED True) >>> add_compile_options(-Wall) >>> >>> find_package(LLVM 10.0.0 REQUIRED CONFIG) >>> >>> message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") >>> message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") >>> &...
2020 Nov 18
0
wasteful cmake defaults
...; and then: >> >> $ git apply <<'EOF' >> diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt >> index 21563e15118..3f5821351a1 100644 >> --- a/llvm/CMakeLists.txt >> +++ b/llvm/CMakeLists.txt >> @@ -55,8 +55,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED YES) >> set(CMAKE_CXX_EXTENSIONS NO) >> >> if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) >> - message(STATUS "No build type selected, default to Debug") >> - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Bu...
2020 Nov 05
1
How to use mainline clang/llvm with CMake
Dear all, I am not sure whether this is a right place to ask basic questions about usage of CLang/LLVM, but also not sure if there is any other mailing list for such. Kindly point me to such a list in such case. I had built mainline CLang/LLVM on OSX and tried to use it with CMake. I had override following variables in CMake: