check for -Wreturn-type
[AROS.git] / config / conf.cmake.in
blob842152faa40c420db04a454bc313b39a88dcf7b4
2 # The Following Flags are handled in make.tmpl's build_with_cmake macros.
4 # CMAKE_C_FLAGS
5 # CMAKE_CXX_FLAGS
6 # CMAKE_EXE_LINKER_FLAGS
8 # AROS configuration...
10 SET(CMAKE_SYSTEM_NAME AROS)
11 SET(CMAKE_SYSTEM_VERSION 1)
12 SET(CMAKE_SYSTEM_PROCESSOR @aros_target_cpu@)
13 SET(BUILD_SHARED_LIBS OFF)
14 SET(LIBTYPE STATIC)
15 SET(CMAKE_BUILD_TYPE Release)
16 SET(CMAKE_FIND_ROOT_PATH @AROS_BUILDDIR@/bin/@aros_target_arch@-@aros_target_cpu@@aros_target_suffix@/AROS/Development)
17 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
18 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
19 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
20 SET(CMAKE_SYSTEM_PROCESSOR @aros_target_cpu@)
21 SET(CMAKE_AR @aros_plain_ar@ CACHE FILEPATH "Archiver")
23 # CMAKE_SYSROOT works only from CMake 3.0, hack below for older versions
24 SET(CMAKE_SYSROOT @AROS_BUILDDIR@/bin/@aros_target_arch@-@aros_target_cpu@@aros_target_suffix@/AROS/Development)
25 SET(CMAKE_C_FLAGS "--sysroot ${CMAKE_SYSROOT} ${CMAKE_C_FLAGS}" CACHE STRING "" FORCE)
26 SET(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_SYSROOT} ${CMAKE_CXX_FLAGS}" CACHE STRING "" FORCE)
28 IF(NOT CMAKE_C_COMPILER)
29   SET(CMAKE_C_COMPILER @aros_target_cc@)
30   SET(CMAKE_C_COMPILER_WORKS:INTERNAL TRUE)
31 ENDIF()
32 IF(NOT CMAKE_CXX_COMPILER)
33   SET(CMAKE_CXX_COMPILER @aros_target_cxx@)
34   SET(CMAKE_CXX_COMPILER_WORKS:INTERNAL TRUE)
35 ENDIF()
36 SET(CMAKE_MODULE_PATH "@SRCDIR@/config/cmake" ${CMAKE_MODULE_PATH}) # For AROS FindPackage scripts
37 SET(CMAKE_BUILD_TYPE Release CACHE STRING "Debug|Release|RelWithDebInfo|MinSizeRel")
38 SET(CMAKE_CROSS_COMPILING ON) # Workaround for http://www.cmake.org/Bug/view.php?id=14075
39 SET(CMAKE_CROSSCOMPILING ON)
40 # SET(PKG_CONFIG_EXECUTABLE )