<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Migration from API 25 to API 26.  And CMake... in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401724#M8679</link>
    <description>&lt;P&gt;Hm... never encountered the linker language issue. I think one issue with your tries with set_target_properties is, that you redefine the target! Hidden in the function &lt;CODE&gt;GenerateAddOnProject&lt;/CODE&gt;, there's already a target with your add-ons name (JHP_Help) created. So instead I would try the following line AFTER &lt;CODE&gt;GenerateAddOnProject&lt;/CODE&gt; (so basically at the end of the file):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;set_target_properties(${AC_ADDON_NAME} PROPERTIES LINKER_LANGUAGE CXX)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 05:48:27 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2023-10-10T05:48:27Z</dc:date>
    <item>
      <title>Migration from API 25 to API 26.  And CMake...</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401288#M8660</link>
      <description>&lt;P&gt;WIN 10 | AC 26 | VS 2019&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;We are making the transition from ArchiCAD 25 to ArchiCAD 27, after skipping verison 26.&amp;nbsp; And I am just now dipping my toe in the waters of CMake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- - I have installed CMake for Visual Studio 2019 from the VS Installer.&lt;/P&gt;
&lt;P&gt;- - I have a successful build and execution for the "Hello CMake" starter project.&lt;BR /&gt;- - Not wanting to make the direct jump to 27, my dev path is 25 &amp;gt; 26 &amp;gt; 27.&lt;/P&gt;
&lt;P&gt;- - Moving on to ArchiCAD Add-Ons, I downloaded the recommended CMakeLists.txt and CMakeCommon.cmake templates from our fair GS Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having trouble generating the build, in spite of settings I have made.&amp;nbsp; The error I receive while detecting the ArchiCAD version is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1696624580717.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/46930i08623B2B1C1FD0B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1696624580717.png" alt="MudratDetector_0-1696624580717.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The function used, from CMakeCommon.cmake, is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;function (DetectACVersion devKitDir acVersion)

    set (ACAPIncFileLocation ${devKitDir}/Inc/ACAPinc.h)
    if (EXISTS ${ACAPIncFileLocation})
        file (READ ${ACAPIncFileLocation} ACAPIncContent)
        string (REGEX MATCHALL "#define[ \t]+ServerMainVers_([0-9][0-9])" VersionList ${ACAPIncContent})
        set (${acVersion} ${CMAKE_MATCH_1} PARENT_SCOPE)
    else ()
        message (FATAL_ERROR "Failed to detect Archicad version, please check the value of the AC_API_DEVKIT_DIR variable.")
    endif ()

endfunction ()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The function call, from CMakeLists.txt, is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;DetectACVersion (${AC_API_DEVKIT_DIR} ACVersion)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;which seem to have an equal number of arguments, contrary to the error message.&lt;BR /&gt;&lt;BR /&gt;So I backed up one step, and made sure I was getting a good value from&amp;nbsp;AC_API_DEVKIT_DIR.&amp;nbsp; I am testing the value with a message before trying to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;message( STATUS "... AC_API_DEVKIT_DIR: $ENV{AC_API_DEVKIT_DIR}")
DetectACVersion (${AC_API_DEVKIT_DIR} ACVersion)
message (STATUS "Archicad Version: ${ACVersion}")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And, as the screenshot above shows, I have an empty string - no value.&lt;BR /&gt;&lt;BR /&gt;I am attempting to set this value in CMakeSettings.json:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_1-1696625475153.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/46931iF38C4CCC20AD8D0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_1-1696625475153.png" alt="MudratDetector_1-1696625475153.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and still get the error.&lt;BR /&gt;&lt;BR /&gt;I have resorted to good ole fashioned DOS with:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_2-1696625600903.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/46932i97DAFD14B0DC2570/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_2-1696625600903.png" alt="MudratDetector_2-1696625600903.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;and still get the error.&lt;BR /&gt;&lt;BR /&gt;What am I missing?&amp;nbsp; Can someone point me in the right direction please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Continued thanks,&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 10:47:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401288#M8660</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-09-17T10:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from API 25 to API 26.  And CMake...</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401299#M8662</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;TLDR:&lt;/STRONG&gt; Please try your &lt;EM&gt;CMakeSettings.json&lt;/EM&gt; approach again and use "Project -&amp;gt; Delete Cache and Regenerate".&amp;nbsp; If that's not helping, I'm trying to give some explanations below why I think certain steps didn't work and some suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Longer explanation&lt;/H2&gt;
&lt;P&gt;I think there are several different causes for the errors in the different steps you are trying. I'll try my best guesses from the descriptions you were giving.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;First of all we have to differentiate the environment variable &lt;CODE&gt;AC_API_DEVKIT_DIR&lt;/CODE&gt; and the CMake variable with the same name!&lt;/P&gt;
&lt;P&gt;Presumably you have something like the following line in your main &lt;EM&gt;CMakeLists.txt&lt;/EM&gt; file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;set (AC_API_DEVKIT_DIR $ENV{AC_API_DEVKIT_DIR} CACHE PATH "API DevKit directory.")
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the line were the CMake variable is set to the same value as the environment variable.&lt;BR /&gt;Now when you don't do anything special and generate the CMake configuration from within Visual Studio, the environment variable will be empty and thus the CMake variable as well. This is my best guess to what happened and you've then discovered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/23128"&gt;@MudratDetector&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am attempting to set this value in CMakeSettings.json:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_1-1696625475153.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/46931iF38C4CCC20AD8D0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_1-1696625475153.png" alt="MudratDetector_1-1696625475153.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and still get the error.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now your first try was to set it in &lt;EM&gt;CMakeSettings.json&lt;/EM&gt;. This is actually a good way in my opinion.&lt;BR /&gt;There might be a few reasons why it still failed. I think most likely is, that the empty string value was still cached for the &lt;STRONG&gt;CMake variable&lt;/STRONG&gt; &lt;CODE&gt;AC_API_DEVKIT_DIR&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;Be sure to use "Project -&amp;gt; Delete Cache and Regenerate". If that's not resolving the issue, i would recommend manually deleting the build folder and trying again.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/23128"&gt;@MudratDetector&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have resorted to good ole fashioned DOS with:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_2-1696625600903.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/46932i97DAFD14B0DC2570/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_2-1696625600903.png" alt="MudratDetector_2-1696625600903.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;and still get the error.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just setting the environment variable with the &lt;CODE&gt;set&lt;/CODE&gt; command in the command prompt doesn't have any effect outside of that specific command prompt process.&lt;/P&gt;
&lt;P&gt;So you would have to use &lt;CODE&gt;setx&lt;/CODE&gt;(and probably run the command prompt as administrator) but I wouldn't recommend it since it's a bit of a hassle to always change it globally when you want to build against a different DEV_KIT version for a different Archicad version.&lt;/P&gt;
&lt;P&gt;Instead I would recommend that you run the &lt;EM&gt;Developer Command Prompt for VS 2019&lt;/EM&gt; or &lt;EM&gt;Developer PowerShell for VS 2019&lt;/EM&gt;, navigate to your project directory, set the environment variable there locally like you did and run a command like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;cmake -B Build -G "Visual Studio 16 2019" -A x64 -T v142 .&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or don't set the environment variable at all and specify the devkit dir as a cmake option like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;cmake -B Build -G "Visual Studio 16 2019" -A x64 -T v142 -DAC_API_DEVKIT_DIR=&amp;lt;DevKitSupportDir&amp;gt; .​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope that helps!&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2023 08:03:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401299#M8662</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-10-07T08:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from API 25 to API 26.  And CMake...</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401577#M8674</link>
      <description>&lt;P&gt;Bernd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the thorough and detailed explanation.&amp;nbsp; I will put these ideas to the test and [fingers crossed] report back with good news.&amp;nbsp; Your previous replies have always gotten me pointed in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&amp;nbsp; The good news is I am successfully setting and reading the value of&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AC_API_DEVKIT_DIR&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 21:45:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401577#M8674</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2023-10-09T21:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from API 25 to API 26.  And CMake...</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401667#M8677</link>
      <description>&lt;P&gt;After resolving a couple other issues, I am currently stuck at:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1&amp;gt; [CMake] -- &amp;gt;&amp;gt;&amp;gt; AC_API_DEVKIT_DIR: C:\Program Files\GRAPHISOFT\API Development Kit 26.3000\Support
1&amp;gt; [CMake] -- Archicad Version: 26
1&amp;gt; [CMake] -- Configuring done
1&amp;gt; [CMake] CMake Error: CMake can not determine linker language for target: JHP_Help
1&amp;gt; [CMake] -- Generating done
1&amp;gt; [CMake] CMake Generate step failed.  Build files cannot be regenerated correctly.
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the CMakeLists.txt file, I have tried using [without success] variations of the CMake commands:&lt;BR /&gt;set()&lt;BR /&gt;add-executable()&lt;BR /&gt;set_target_properties()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all of which seem to be the goto solution for this issue and are seen commented below.&lt;BR /&gt;&lt;BR /&gt;Below is my CMakeLists.txt file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cmake_minimum_required (VERSION 3.16)

include (Tools/CMakeCommon.cmake)

set (API_DEVKIT_DIR $ENV{AC_API_DEVKIT_DIR} CACHE PATH "API DevKit directory.")

if (GITHUB_BUILD)
    include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
    set (API_DEVKIT_DIR ${CONAN_ARCHICAD-APIDEVKIT_ROOT}/bin)
endif ()

set_property (GLOBAL PROPERTY USE_FOLDERS ON)

set (CMAKE_CONFIGURATION_TYPES Debug;Release;RelWithDebInfo)
set (AC_API_DEVKIT_DIR ${API_DEVKIT_DIR} CACHE PATH "API DevKit directory.")
set (AC_ADDON_NAME "JHP_Help" CACHE STRING "AddOn Name")
set (AC_ADDON_LANGUAGE "INT" CACHE STRING "Add-On language code.")

project (${AC_ADDON_NAME} CXX)

# set(JHP_HelpCPP JHP_Help.cpp)
# add_executable(JHP_Help ${JHP_HelpCPP})
# set_target_properties(JHP_HelpCPP PROPERTIES LINKER_LANGUAGE CXX)

message( STATUS "&amp;gt;&amp;gt;&amp;gt; AC_API_DEVKIT_DIR: $ENV{AC_API_DEVKIT_DIR}")
DetectACVersion (${AC_API_DEVKIT_DIR} ACVersion)
message (STATUS "Archicad Version: ${ACVersion}")

set (AddOnFolder .)
SetGlobalCompilerDefinitions ()
GenerateAddOnProject (${ACVersion} ${AC_API_DEVKIT_DIR} ${AC_ADDON_NAME} ${AddOnFolder} ${AC_ADDON_LANGUAGE})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, once again, I am not sure if this is a coding syntax issue, a Visual Studio configuration issue, or where best to look to solve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, as always - chris&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 22:08:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401667#M8677</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2023-10-09T22:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from API 25 to API 26.  And CMake...</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401724#M8679</link>
      <description>&lt;P&gt;Hm... never encountered the linker language issue. I think one issue with your tries with set_target_properties is, that you redefine the target! Hidden in the function &lt;CODE&gt;GenerateAddOnProject&lt;/CODE&gt;, there's already a target with your add-ons name (JHP_Help) created. So instead I would try the following line AFTER &lt;CODE&gt;GenerateAddOnProject&lt;/CODE&gt; (so basically at the end of the file):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;set_target_properties(${AC_ADDON_NAME} PROPERTIES LINKER_LANGUAGE CXX)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 05:48:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401724#M8679</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-10-10T05:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from API 25 to API 26.  And CMake...</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401856#M8692</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GenerateAddOnProject (${ACVersion} ${AC_API_DEVKIT_DIR} ${AC_ADDON_NAME} ${AddOnFolder} ${AC_ADDON_LANGUAGE})
set_target_properties(${AC_ADDON_NAME} PROPERTIES LINKER_LANGUAGE CXX)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;was the trick to getting over that hurdle.&amp;nbsp; After a few other edits, I now have an error free build.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am not getting an .apx file.&amp;nbsp; I suspect I need to rearrange my file/folder structure, most notably putting the .cpp file in the .\Src folder.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1697039515955.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47163iEAD7497984A66077/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1697039515955.png" alt="MudratDetector_0-1697039515955.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still digging around with this.&amp;nbsp; Thanks for sharing the knowledge so far...&lt;/P&gt;&lt;P&gt;- chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&amp;nbsp; Hurray!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1697046747927.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47170iE32279AEFA693700/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1697046747927.png" alt="MudratDetector_0-1697046747927.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But firing up AC26 gets me this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_1-1697046900533.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47173i8EFD39FE4E9B214D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_1-1697046900533.png" alt="MudratDetector_1-1697046900533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And selecting the .apx file to manually add it gets me this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_2-1697047156804.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47177iD42E1ABB04AC1DD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_2-1697047156804.png" alt="MudratDetector_2-1697047156804.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So close.&lt;/P&gt;&lt;P&gt;Will it ever end... !!!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 17:59:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401856#M8692</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2023-10-11T17:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from API 25 to API 26.  And CMake...</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401892#M8693</link>
      <description>&lt;P&gt;That did not take too long.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1697056185739.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47181iC511E2E1334B789E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1697056185739.png" alt="MudratDetector_0-1697056185739.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And, it even works!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_1-1697056262121.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47182i9383302BA00137CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_1-1697056262121.png" alt="MudratDetector_1-1697056262121.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Turns out the catch was an ERROR in defining&amp;nbsp;CMAKE_CONFIGURATION_TYPES twice.&amp;nbsp; Not exactly which one of these fixed it but:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# set (CMAKE_CONFIGURATION_TYPES Debug;Release;RelWithDebInfo)
set (CMAKE_CONFIGURATION_TYPES Debug)&lt;/LI-CODE&gt;&lt;P&gt;looks like once and not three times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And manually removing:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
   "name": "CMAKE_CONFIGURATION_TYPES",
   "value": "x64-Debug",
   "type": "STRING"
}&lt;/LI-CODE&gt;&lt;P&gt;from the .json file and leaving&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set (CMAKE_CONFIGURATION_TYPES Debug)&lt;/LI-CODE&gt;&lt;P&gt;in the CMakeLists.txt file did the trick.&lt;/P&gt;&lt;P&gt;Although I suspect this 'set' writes to the .json file...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the guidance!&lt;BR /&gt;And I hope this play-by-play helps someone else who has yet to transition out of API 25.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- chris&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 20:44:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Migration-from-API-25-to-API-26-And-CMake/m-p/401892#M8693</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2023-10-11T20:44:41Z</dc:date>
    </item>
  </channel>
</rss>

