summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2022-11-10 07:54:19 -0600
committerChad Elliott <elliottc@objectcomputing.com>2022-11-10 07:54:19 -0600
commitc4e2b6a717b9a07444c22a00d9c57a9de76f3d42 (patch)
treeccda9279a9caa5c2fa4b2ba50a54977dab9d00ff
parent38aa62978ad2ec23a949ff9a204fb796fbb0e07d (diff)
downloadMPC-c4e2b6a717b9a07444c22a00d9c57a9de76f3d42.tar.gz
Define MPC_LIB_MODIFIER as ACE expects it to be defined.
-rw-r--r--templates/cmake.mpd5
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%>)