summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2022-10-11 12:46:03 -0500
committerChad Elliott <elliottc@objectcomputing.com>2022-10-11 12:46:03 -0500
commit5099bdb4327d16bf0946a78c5c332e46c8a48677 (patch)
tree978a444f1c3e9112052ff2256e071725a164bf2e /templates
parentb3dbad5d84d83bcf809e7aba458627b6014d6d71 (diff)
downloadMPC-5099bdb4327d16bf0946a78c5c332e46c8a48677.tar.gz
Added hard-coded configurations for libraries.
Diffstat (limited to 'templates')
-rw-r--r--templates/cmake.mpd5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/cmake.mpd b/templates/cmake.mpd
index ed263236..baf41f7a 100644
--- a/templates/cmake.mpd
+++ b/templates/cmake.mpd
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION <%cmake_minimum_required(3.3.0)%>)
+cmake_minimum_required(VERSION <%cmake_minimum_required(3.12.0)%>)
<%marker(top)%>
project(<%project_name%> <%language%>)
@@ -20,7 +20,8 @@ find_package(ACE REQUIRED)
<%endif%>
set(SOURCE_FILES <%non_generated_sources%>)
<%if(libs || lit_libs || pure_libs)%>
-set(TARGET_LINK_LIBRARIES<%if(libs)%> <%libs%><%endif%><%if(lit_libs)%> <%lit_libs%><%endif%><%if(pure_libs)%> <%pure_libs%><%endif%>)
+set(TARGET_LINK_LIBRARIES<%if(libs)%> $<$<CONFIG:Release>:<%libs%>>
+ $<$<CONFIG:Debug>:<%foreach(libs)%><%fornotfirst(" ")%><%lib%>d<%endfor%>><%endif%><%if(lit_libs)%> <%lit_libs%><%endif%><%if(pure_libs)%> <%pure_libs%><%endif%>)
<%endif%>
<%if(exename)%>
set(PROJECT_TARGET <%exename%>)