• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] TrinityCore 3.3.5 CMAKE errors

Status
Not open for further replies.

Intouch

Respected Member
Hello!

I tried to create a build solution for my sourcecode and I am getting those errors:


Code:
CMake Error at src/server/logonserver/CMakeLists.txt:103 (add_executable):
  add_executable called with incorrect number of arguments


CMake Error at src/server/logonserver/CMakeLists.txt:108 (add_dependencies):
  Cannot add target-level dependencies to non-existent target "logonserver".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.


CMake Error at src/server/logonserver/CMakeLists.txt:116 (target_link_libraries):
  Cannot specify link libraries for target "logonserver" which is not built
  by this project.

Here is that CMAKE file: http://pastebin.com/B46KTWyr

Sincerely, Intouch!
 

Rochet2

Moderator / Eluna Dev
What is your core version hash?
The latest TC 3.3.5 and 6.x dont have "logonserver" folder.

So likely you do not have official TC or you have some old version and we need to know what version that is.
 

Intouch

Respected Member
I don't follow TC standards since 2014-2015 (once they added BOOST feature) but I do have almost exact same fixes as they do.

So, basically I started working on something and I added new login (auth) feature to my core but this code is old so I had to fix some codestyle and once I did that, I transfered it to my core and I got these errors so I am not sure what I forgot to add / change in my core. Here is one example of my CMAKE file (authserver's cmake):

http://pastebin.com/etpw7MGy

So I am not sure what I have to change in that CMake file in order to fix this error.
 
Last edited:

Rochet2

Moderator / Eluna Dev
Looks to me like these are not defined:
${logon_SRCS}
${logon_PCH_SRC}
You probably made a mistake with the name and they should be
${logonserver_SRCS}
${logonserver_PCH_SRC}
 

Intouch

Respected Member
Okay, I found out what was wrong now so problem is solved.

Basically I was missing that part so I added:

Code:
${logonserver_SRCS}
${logonserver_PCH_SRC}

Together with:

Code:
${logon_SRCS}
${logon_PCH_SRC}

(Because there is one more folder called "logon")

--

Tnx for helping me!
 
Status
Not open for further replies.
Top