3
0
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:
Nils Wentzell 2020-06-10 16:46:16 -04:00
parent acd88f1a62
commit b6cedfb0df

View File

@ -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