I am new to CMake. Can somebody tell me why there is an error when changing the order of item in target link libraries.
target_link_libraries(HTTPCPP
config
http
core
utils
)
above CMakeList.txt show error :
undefined reference to VAR
VAR is defined in config library. and included in http,core,utils library.
in the other hand, if i move config to the last of target_link_libraries the code worked fine.
target_link_libraries(HTTPCPP
http
core
utils
config
)