Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
cmake_minimum_required (VERSION 3.14.1)
project (FOSITE NONE)

enable_language(CXX)
enable_language(C)

# detect git
find_package(Git)
if(Git_FOUND)
Expand Down Expand Up @@ -52,6 +55,7 @@ else()
endif()
endif()


if(LLVM_FOUND)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION} in ${LLVM_INSTALL_PREFIX}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
Expand All @@ -70,7 +74,8 @@ endif()

# check and set the build type
set (CMAKE_BUILD_TYPE_NAMES RELEASE DEBUG PROFILING)
set (CMAKE_BUILD_TYPE RELEASE CACHE STRING "Should be one of RELEASE, DEBUG, PROFILING; default: RELEASE")
set (CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "Should be one of RELEASE, DEBUG, PROFILING; default: RELEASE" FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_BUILD_TYPE_NAMES})
if (NOT CMAKE_BUILD_TYPE IN_LIST CMAKE_BUILD_TYPE_NAMES)
message(FATAL_ERROR "Unknown build type, should be one of RELEASE, DEBUG, PROFILING")
endif()
Expand Down