You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid installing the library in a hard-coded folder in the root of the cmake project? #31
I'm using the library through the CPM "package manager". The static library is installed in a lib folder in the root of my project because of this line:
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY${CMAKE_SOURCE_DIR}/lib)
Could it make sense to use ${CMAKE_BINARY_DIR} instead of ${CMAKE_SOURCE_DIR}. This gives a library user more control over where the library is installed I think.
Of course adding the lib/ folder to my .gitignore file also solves my problem.
I'm not sure what the cmake best practice is here. Maybe there even is yet an other option that is even better.
Activity