-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't build libs twice in the STATIC_ONLY case #174
Comments
Hey, Can you give more information if this is still relevant ? I'm only seeing a random parallel build issue |
Never mind, reproduced. |
So.. this is the expected behaviour. add_library(ical ${LIBRARY_TYPE} ${ical_LIB_SRCS}) You're creating two libs when SHARED_ONLY is false. After that you're installing both but rename the library if the compiler isn't MSVC. The question is: why do you need two libraries with different names when using MSVC ? |
heck if I remember why things are like that. However, I know I spent some time on it and never was able to come up with a satisfactory solution on Windows. I'm not sure how to respond really. Perhaps a re-factorization of the CMake code using functions or macros would shed some light? up to you, I don't feel much like playing with it myself. |
With MSVC, a |
When building static libraries only (cmake -DSTATIC_ONLY), the libraries are built twice. stop doing that.
The text was updated successfully, but these errors were encountered: