[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] [SPAM] Re:  resource installation
From:       Rob Boehne <robb () datalogics ! com>
Date:       2019-01-29 20:04:29
Message-ID: 763DC666-977D-4873-A4DC-7FD6DE12CE7E () datalogics ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

I'm still not getting this script executed.  I can copy the "message" output and run \
it – and it does what I want, and I see it in cmake_install.cmake – the message() \
and execute_process() calls are inside of identical conditionals, but there's no \
indication that it is executing, or that there was any sort of problem. How do I get \
it to actually execute?

In cmake_install.cmake:

if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT \
CMAKE_INSTALL_COMPONENT)  message("running \
C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/ResourceInstall.bat x64 Release") \
endif()

if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT \
CMAKE_INSTALL_COMPONENT)  execute_process(COMMAND \
"C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/ResourceInstall.bat x64 Release") \
endif()


From: CMake <cmake-bounces@cmake.org> on behalf of Rob Boehne <robb@datalogics.com>
Date: Thursday, January 24, 2019 at 9:49 AM
To: "cmake@cmake.org" <cmake@cmake.org>
Subject: [SPAM] Re: [CMake] resource installation

Maybe because I misspelled it?  Yes.  Because I misspelled the script name.

From: CMake <cmake-bounces@cmake.org> on behalf of Rob Boehne <robb@datalogics.com>
Date: Thursday, January 24, 2019 at 9:40 AM
To: "cmake@cmake.org" <cmake@cmake.org>
Subject: [SPAM] [CMake] resource installation

All,

I'm attempting to install resource files (Fonts, etc.) into my product.  To that end, \
I have added this chunk of code to run a batch file that will copy resources into the \
tree:

if(WIN32)
    #
    # run the script to install the resources
    #
    install(CODE "message(\"running ${CMAKE_CURRENT_SOURCE_DIR}/ResourceInstall.bat \
${WIN_PLATFORM} ${CMAKE_BUILD_TYPE}\")")  install(CODE "execute_process(COMMAND \
\"${CMAKE_CURRENT_SOURCE_DIR}/ResourceInstall.bat ${WIN_PLATFORM} \
${CMAKE_BUILD_TYPE}\")") endif()

I see the output of the first line when I run the INSTALL target in VS 2013, but it \
seems as though the script isn't run.

1>  -- Install configuration: "RelWithDebInfo"

1>  running C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/ResourceInstall.bat \
x64 Release

1>  -- Installing: C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/cmake_build/../dist/x64/release/CPlusPlus/Binaries/DL150BIBUtils.lib


So the message is there, but the script isn't run.

I'm I missing a dependency, or formatting the string incorrectly?  How do I debug \
this?

Thanks,

Rob


[cid:image002.png@01D3D0E3.DCFE6710]

Rob Boehne
Senior Software Architect | Datalogics, Inc.
+1.312.853.8351<tel:(312)%20853-8351> | \
robb@datalogics.com<mailto:robb@datalogics.com> \
datalogics.com<http://www.datalogics.com/> | \
blogs.datalogics.com<http://blogs.datalogics.com/>

Connect with us: Facebook<https://www.facebook.com/DatalogicsInc> | \
Twitter<https://twitter.com/DatalogicsInc> | \
LinkedIn<https://www.linkedin.com/company/datalogics?actionToken=p=p%3Dbiz-company-log \
in%26c%3D3217e65a-bdc2-4b38-8f9c-13c982e8c529%26m%3Dcompany_feed%26n%3D0&t=a%3DisFollo \
weeOfPoster%253Dfalse%2526distanceFromActor%253D-1%2526actorType%253D%2526likedByUser% \
253Dfalse%2526targetId%253D%2526recentCommentUrns%253D%2526targetType%253D%2526sponsor \
edFlag%253DORGANIC%2526verbType%253Dlinkedin%25253Ashare%2526objectType%253Dlinkedin%2 \
5253Aarticle%2526totalShares%253D0%2526activityId%253Durn%25253Ali%25253Aactivity%2525 \
3A6263731876121362433%2526recentLikerUrns%253D%2526actorId%253Durn%25253Ali%25253Acomp \
any%25253A14000%2526totalComments%253D0%2526relevanceScore%253D0.0%2526recentCommenter \
Urns%253D%2526isPublic%253Dtrue%2526time%253D-1%2526totalLikes%253D0%2526objectId%253D \
urn%25253Ali%25253Aarticle%25253A7793179909183391510%2526distanceFromNestedActor%253D-1%26s%3DORG> \
| YouTube<https://www.youtube.com/user/Datalogics>


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
p.p1, li.p1, div.p1
	{mso-style-name:p1;
	margin:0in;
	margin-bottom:.0001pt;
	background:#E6E7E8;
	font-size:7.0pt;
	font-family:Consolas;
	color:#1E1E1E;}
span.EmailStyle19
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.apple-converted-space
	{mso-style-name:apple-converted-space;}
span.EmailStyle21
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EmailStyle22
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">I'm still not getting this script \
executed.&nbsp; I can copy the "message" output and run it – and it does what I \
want, and I see it in cmake_install.cmake – the message() and execute_process() \
calls are inside  of identical conditionals, but there's no indication that it is \
executing, or that there was any sort of problem.<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">How do I get it to actually \
execute?<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">In cmake_install.cmake:<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt">if(&quot;x${CMAKE_INSTALL_COMPONENT}x&quot; STREQUAL \
&quot;xUnspecifiedx&quot; OR NOT CMAKE_INSTALL_COMPONENT)<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp; message(&quot;running \
C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/ResourceInstall.bat x64 \
Release&quot;)<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">endif()<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">if(&quot;x${CMAKE_INSTALL_COMPONENT}x&quot; STREQUAL \
&quot;xUnspecifiedx&quot; OR NOT CMAKE_INSTALL_COMPONENT)<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp; execute_process(COMMAND \
&quot;C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/ResourceInstall.bat x64 \
Release&quot;)<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">endif()<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p> <div \
style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"> <p \
class="MsoNormal"><b><span style="color:black">From: </span></b><span \
style="color:black">CMake &lt;cmake-bounces@cmake.org&gt; on behalf of Rob Boehne \
&lt;robb@datalogics.com&gt;<br> <b>Date: </b>Thursday, January 24, 2019 at 9:49 \
AM<br> <b>To: </b>&quot;cmake@cmake.org&quot; &lt;cmake@cmake.org&gt;<br>
<b>Subject: </b>[SPAM] Re: [CMake] resource installation<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">Maybe because I misspelled \
it?&nbsp; Yes.&nbsp; Because I misspelled the script name.</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p> <div \
style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"> <p \
class="MsoNormal"><b><span style="color:black">From: </span></b><span \
style="color:black">CMake &lt;cmake-bounces@cmake.org&gt; on behalf of Rob Boehne \
&lt;robb@datalogics.com&gt;<br> <b>Date: </b>Thursday, January 24, 2019 at 9:40 \
AM<br> <b>To: </b>&quot;cmake@cmake.org&quot; &lt;cmake@cmake.org&gt;<br>
<b>Subject: </b>[SPAM] [CMake] resource installation</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">All,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I'm attempting to install \
resource files (Fonts, etc.) into my product.&nbsp; To that end, I have added this \
chunk of code to run a batch file that will copy resources into the \
tree:</span><o:p></o:p></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">if(WIN32)</span><o:p></o:p></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">&nbsp;&nbsp;&nbsp; #</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp;&nbsp;&nbsp; # run the script \
to install the resources</span><o:p></o:p></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">&nbsp;&nbsp;&nbsp; #</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp;&nbsp;&nbsp; install(CODE \
&quot;message(\&quot;running ${CMAKE_CURRENT_SOURCE_DIR}/ResourceInstall.bat \
${WIN_PLATFORM} ${CMAKE_BUILD_TYPE}\&quot;)&quot;)</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp;&nbsp;&nbsp; install(CODE \
&quot;execute_process(COMMAND \&quot;${CMAKE_CURRENT_SOURCE_DIR}/ResourceInstall.bat \
${WIN_PLATFORM} ${CMAKE_BUILD_TYPE}\&quot;)&quot;)</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">endif()</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">I see the output of the first line \
when I run the INSTALL target in VS 2013, but it seems as though the script isn't \
run.</span><o:p></o:p></p> <p class="p1">1&gt;<span \
class="apple-converted-space">&nbsp; </span>-- Install configuration: \
&quot;RelWithDebInfo&quot;<o:p></o:p></p> <p class="p1">1&gt;<span \
class="apple-converted-space">&nbsp; </span>running \
C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/ResourceInstall.bat x64 \
Release<o:p></o:p></p> <p class="p1">1&gt;<span class="apple-converted-space">&nbsp; \
</span>-- Installing: \
C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/cmake_build/../dist/x64/release/CPlusPlus/Binaries/DL150BIBUtils.lib<o:p></o:p></p>
 <p class="MsoNormal"><span style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">So the message is there, but the \
script isn't run.</span><o:p></o:p></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal"><span \
style="font-size:11.0pt">I'm I missing a dependency, or formatting the string \
incorrectly?&nbsp; How do I debug this?</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">Thanks,</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">Rob</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p> <p \
class="MsoNormal" style="text-autospace:none"><span \
style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p> <table class="MsoNormalTable" \
border="0" cellspacing="0" cellpadding="0" width="392" \
style="width:293.8pt;margin-left:-5.4pt;border-collapse:collapse"> <tbody>
<tr style="height:66.75pt">
<td width="101" style="width:76.0pt;padding:0in 5.4pt 0in 5.4pt;height:66.75pt">
<p class="MsoNormal" align="center" style="text-align:center;text-autospace:none">
<span style="font-size:11.0pt"><img width="87" height="87" \
style="width:.9062in;height:.9062in" id="Picture_x0020_1" \
src="cid:image001.png@01D4B7DB.8A43B180" \
alt="cid:image002.png@01D3D0E3.DCFE6710"></span><o:p></o:p></p> </td>
<td width="290" style="width:217.8pt;padding:0in 5.4pt 0in 5.4pt;height:66.75pt">
<p class="MsoNormal" style="text-autospace:none"><b><span \
style="font-size:11.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#E83C21">Rob \
Boehne</span></b><o:p></o:p></p> <p class="MsoNormal" \
style="text-autospace:none"><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Senior Software \
Architect | Datalogics, Inc.</span><o:p></o:p></p> <p class="MsoNormal" \
style="text-autospace:none"><span style="font-size:11.0pt"><a \
href="tel:(312)%20853-8351"><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#0B4CB4">&#43;1.312.853.8351</span></a></span><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;|&nbsp;<a \
href="mailto:robb@datalogics.com"><span \
style="color:#0B4CB4">robb@datalogics.com</span></a></span><o:p></o:p></p> <p \
class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt"><a \
href="http://www.datalogics.com/"><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#0B4CB4">datalogics.com</span></a></span><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;|&nbsp;<a \
href="http://blogs.datalogics.com/"><span \
style="color:#0B4CB4">blogs.datalogics.com</span></a></span><o:p></o:p></p> </td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="text-autospace:none"><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Connect with \
us:&nbsp;<a href="https://www.facebook.com/DatalogicsInc"><span \
style="color:#0B4CB4">Facebook</span></a>&nbsp;|&nbsp;<a \
href="https://twitter.com/DatalogicsInc"><span \
style="color:#0B4CB4">Twitter</span></a>&nbsp;|&nbsp;<a \
href="https://www.linkedin.com/company/datalogics?actionToken=p=p%3Dbiz-company-login% \
26c%3D3217e65a-bdc2-4b38-8f9c-13c982e8c529%26m%3Dcompany_feed%26n%3D0&amp;t=a%3DisFoll \
oweeOfPoster%253Dfalse%2526distanceFromActor%253D-1%2526actorType%253D%2526likedByUser \
%253Dfalse%2526targetId%253D%2526recentCommentUrns%253D%2526targetType%253D%2526sponso \
redFlag%253DORGANIC%2526verbType%253Dlinkedin%25253Ashare%2526objectType%253Dlinkedin% \
25253Aarticle%2526totalShares%253D0%2526activityId%253Durn%25253Ali%25253Aactivity%252 \
53A6263731876121362433%2526recentLikerUrns%253D%2526actorId%253Durn%25253Ali%25253Acom \
pany%25253A14000%2526totalComments%253D0%2526relevanceScore%253D0.0%2526recentCommente \
rUrns%253D%2526isPublic%253Dtrue%2526time%253D-1%2526totalLikes%253D0%2526objectId%253 \
Durn%25253Ali%25253Aarticle%25253A7793179909183391510%2526distanceFromNestedActor%253D-1%26s%3DORG"><span \
style="color:#0B4CB4">LinkedIn</span></a>&nbsp;|&nbsp;<a \
href="https://www.youtube.com/user/Datalogics"><span \
style="color:#0B4CB4">YouTube</span></a></span><o:p></o:p></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><o:p></o:p></p>
 <p class="MsoNormal">&nbsp;<o:p></o:p></p>
</div>
</body>
</html>


["image001.png" (image/png)]

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

--===============0291859014==--



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic