diff options
author | Chad Elliott <elliottc@objectcomputing.com> | 2022-11-10 07:54:19 -0600 |
---|---|---|
committer | Chad Elliott <elliottc@objectcomputing.com> | 2022-11-10 07:54:19 -0600 |
commit | c4e2b6a717b9a07444c22a00d9c57a9de76f3d42 (patch) | |
tree | ccda9279a9caa5c2fa4b2ba50a54977dab9d00ff | |
parent | 38aa62978ad2ec23a949ff9a204fb796fbb0e07d (diff) | |
download | MPC-c4e2b6a717b9a07444c22a00d9c57a9de76f3d42.tar.gz |
Define MPC_LIB_MODIFIER as ACE expects it to be defined.
-rw-r--r-- | templates/cmake.mpd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/cmake.mpd b/templates/cmake.mpd index 18d702b2..4b21a2eb 100644 --- a/templates/cmake.mpd +++ b/templates/cmake.mpd @@ -110,6 +110,11 @@ set_target_properties(${PROJECT_TARGET_<%uc(normalize(project_name))%>} PROPERTI <%endif%> <%endif%> +if(CMAKE_CONFIGURATION_TYPES) +target_compile_definitions(${PROJECT_TARGET_<%uc(normalize(project_name))%>} PUBLIC +<%foreach(configurations)%> $<$<CONFIG:<%configuration%>>:MPC_LIB_MODIFIER="${LIBRARY_DECORATOR}<%lib_modifier%>"><%fornotlast("\n")%><%endfor%>) +endif() + <%if(includes)%> target_include_directories(${PROJECT_TARGET_<%uc(normalize(project_name))%>} PRIVATE <%env_includes%>) |