search for: add_compile_options

Displaying 3 results from an estimated 3 matches for "add_compile_options".

2020 May 15
2
Building A Project Against LLVM
...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_executable(CBreakCompiler src...
2020 May 16
2
Building A Project Against LLVM
...o "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}) &...
2020 May 16
2
Building A Project Against LLVM
...; >>> 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_IN...