mirror of
https://github.com/triqs/dft_tools
synced 2024-11-18 12:03:50 +01:00
[cmake] Provide a namespaced alias to the PROJECT_NAME_warnings target
This commit is contained in:
parent
acd88f1a62
commit
b6cedfb0df
@ -100,6 +100,7 @@ add_compile_options(
|
|||||||
|
|
||||||
# Create an Interface target for compiler warnings
|
# Create an Interface target for compiler warnings
|
||||||
add_library(${PROJECT_NAME}_warnings INTERFACE)
|
add_library(${PROJECT_NAME}_warnings INTERFACE)
|
||||||
|
add_library(${PROJECT_NAME}::${PROJECT_NAME}_warnings ALIAS ${PROJECT_NAME}_warnings)
|
||||||
target_compile_options(${PROJECT_NAME}_warnings
|
target_compile_options(${PROJECT_NAME}_warnings
|
||||||
INTERFACE
|
INTERFACE
|
||||||
-Wall
|
-Wall
|
||||||
|
Loading…
Reference in New Issue
Block a user