set(TestProject_additional_libs
optimized foobar.lib
debug foobard.lib
}
especially what is optimized/debug mean here? Is this the standard way to add libs using cmake?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It looks like a “misuse” to me. Those all are just assigned to a variable
TestProject_additional_libs. The magic happens probably later when it is expanded in something like target_link_libraries. I did not know one can do something like that. But indeed it is not clear what actually is going on when it is written this way.Citing the manual from aforementioned link: