View Full Version : [SOLVED] TrinityCore 3.3.5 CMAKE errors

08-20-2016, 06:54 AM

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

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!

08-20-2016, 07:48 AM
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.

08-20-2016, 12:55 PM
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):


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

08-20-2016, 01:39 PM
Looks to me like these are not defined:
You probably made a mistake with the name and they should be

08-21-2016, 10:25 PM
Okay, I found out what was wrong now so problem is solved.

Basically I was missing that part so I added:


Together with:


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


Tnx for helping me!