File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ if (MSVC)
44
44
/W4
45
45
/permissive-
46
46
/Zc:__cplusplus
47
- /D_ENABLE_EXTENDED_ALIGNED_STORAGE
48
47
/EHsc
49
48
)
50
49
# Only define NOMINMAX on Windows platforms
@@ -67,18 +66,21 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
67
66
-Wextra
68
67
-Wconversion
69
68
-Wpedantic
70
- -Wpedantic-macros
71
69
# Define NOMINMAX only on Windows to avoid conflicts with min/max macros
72
70
$< $< BOOL:${WIN32} > :-DNOMINMAX>
73
- #-Wno-unused-but-set-variable
74
- #-Wno-unused-value
75
- #-Wno-unused-parameter
76
71
)
77
72
73
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ) # TODO: Check if intel llvm has this flag
74
+ target_compile_options (${PROJECT_NAME} -compile-options INTERFACE
75
+ -Wpedantic-macros
76
+ )
77
+ endif ()
78
+
78
79
if (CCMATH_STRICT_WARNINGS )
79
80
target_compile_options (${PROJECT_NAME} -compile-options INTERFACE -Werror=return-type )
80
81
endif ()
81
82
83
+ # TODO: Decide if we plan to delete this or not
82
84
# if (CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
83
85
# target_compile_options(${PROJECT_NAME}-compile-options INTERFACE
84
86
# -Wno-tautological-constant-compare
@@ -130,7 +132,7 @@ if (CCMATH_DISABLE_ERRNO)
130
132
endif ()
131
133
132
134
# Generate version header
133
- configure_file (cmake/version.hpp.in "${CMAKE_CURRENT_BINARY_DIR} /include/${PROJECT_NAME} /version.hpp" @ONLY )
135
+ configure_file (cmake/version.hpp.in "${CMAKE_CURRENT_BINARY_DIR} /include/ccmath /version.hpp" @ONLY )
134
136
135
137
# Add optional subdirectories only if requested
136
138
if (CCMATH_BUILD_EXAMPLES OR CCMATH_BUILD_BENCHMARKS OR CCMATH_BUILD_TESTS )
You can’t perform that action at this time.
0 commit comments