Open FTamas77 opened 3 weeks ago
Finally, I decided to link the folders:
target_link_libraries(myTest
"D:/conan_data/b/gtestcaa086ac267d4/b/build/lib/Release/gtest.lib"
"D:/conan_data/b/gtestcaa086ac267d4/b/build/lib/Release/gtest_main.lib")
target_include_directories(myTest PRIVATE "${gtest_INCLUDE_DIRS_RELEASE}")
It was in the source:
set(gtest_PACKAGE_FOLDER_RELEASE "D:/conan_data/b/gtestcaa086ac267d4/p")
but that is the source for the headers.
In the past, it worked for me with conan 1.0, now this solution is good for me.
Describe the issue
I cannot link the gtest. Linker error.
Steps to reproduce the problem
My conanfile:
My profile
My cmakefile:
What version of GoogleTest are you using?
1.14.0
What operating system and version are you using?
Windows 11
What compiler and version are you using?
Visual Studio 2022
What build system are you using?
cmake version 3.29.1
Additional context
No response
EDIT:
config looks good:
Building: