1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-18 15:29:48 +00:00

Tell needed compiler features to cmake instead of -std=c++11 flag

This commit is contained in:
King_DuckZ 2016-04-26 19:53:19 +02:00
parent 6590898a36
commit c21779adde
4 changed files with 32 additions and 4 deletions

View file

@ -25,6 +25,10 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE ${Readline_LIBRARY}
)
target_compile_features(${PROJECT_NAME}
PUBLIC cxx_alignof
)
string(REPLACE "${bare_name}-" "" ACTION_NAME "${PROJECT_NAME}")
target_compile_definitions(${PROJECT_NAME}
PRIVATE ACTION_NAME="${ACTION_NAME}"