@@ -24,7 +24,7 @@ cmake_policy(VERSION ${CMAKE_VERSION})
2424
2525# ############
2626# Define Project
27- project (triqs_dft_tools VERSION 3.3.1 LANGUAGES C CXX Fortran)
27+ project (triqs_dft_tools VERSION 3.3.1 LANGUAGES CXX Fortran)
2828get_directory_property (IS_SUBPROJECT PARENT_DIRECTORY )
2929
3030# ############
@@ -66,6 +66,11 @@ if(NOT IS_SUBPROJECT)
6666 message (STATUS "-------- BUILD-TYPE: ${CMAKE_BUILD_TYPE} --------" )
6767endif ()
6868
69+ # Python Support
70+ if (NOT TRIQS_WITH_PYTHON_SUPPORT)
71+ message (FATAL_ERROR "TRIQS was installed without Python support. Cannot build the Python Interface. Disable the build with -DPythonSupport=OFF" )
72+ endif ()
73+
6974# Documentation
7075option (Build_Documentation "Build documentation" OFF )
7176
@@ -75,44 +80,6 @@ if(Build_Tests)
7580 enable_testing ()
7681endif ()
7782
78- # ############
79- # Global Compilation Settings
80-
81- # Build static libraries by default
82- option (BUILD_SHARED_LIBS "Enable compilation of shared libraries" OFF )
83-
84- # Export the list of compile-commands into compile_commands.json
85- set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
86-
87- # Disable compiler extensions
88- set (CMAKE_CXX_EXTENSIONS OFF )
89-
90- # Provide additional debugging information for Debug builds
91- add_compile_options ($<$<CONFIG:Debug>:-ggdb3>)
92-
93- # Create an Interface target for compiler warnings
94- add_library (${PROJECT_NAME} _warnings INTERFACE )
95- target_compile_options (${PROJECT_NAME} _warnings
96- INTERFACE
97- -Wall
98- -Wextra
99- -Wfloat-conversion
100- -Wpedantic
101- -Wno-sign-compare
102- $<$<CXX_COMPILER_ID:GNU>:-Wno-comma-subscript>
103- $<$<CXX_COMPILER_ID:GNU>:-Wno-psabi> # Disable notes about ABI changes
104- $<$<CXX_COMPILER_ID:GNU>:-Wshadow=local>
105- $<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>
106- $<$<CXX_COMPILER_ID:GNU>:-Wno-deprecated-declarations>
107- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-deprecated-comma-subscript>
108- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-unknown-warning-option>
109- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wshadow>
110- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-gcc-compat>
111- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-c++20-extensions>
112- $<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-c++20-compat>
113- $<$<CXX_COMPILER_ID:IntelLLVM>:-Wno-tautological-constant-compare>
114- )
115-
11683# Provide GNU Installation directories
11784include (GNUInstallDirs)
11885
@@ -144,7 +111,7 @@ add_subdirectory(bin)
144111# Additional configuration files
145112add_subdirectory (share)
146113
147- # add packaging for automatic Versioning
114+ # add packaging for automatic versioning
148115add_subdirectory (packaging)
149116
150117# #############
0 commit comments