Skip to content
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

"CONFIGURATIONS" should come before what it applies to #2

Open
ethanbb opened this issue Jul 19, 2019 · 0 comments
Open

"CONFIGURATIONS" should come before what it applies to #2

ethanbb opened this issue Jul 19, 2019 · 0 comments

Comments

@ethanbb
Copy link

ethanbb commented Jul 19, 2019

In a few places, I've seen commands like this:

install(TARGETS ${COMMONLIB_NAME}
	LIBRARY DESTINATION ${GUI_COMMONLIB_DIR}/${CONFIGURATION_FOLDER}/lib/${CMAKE_LIBRARY_ARCHITECTURE}
	CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES}
	ARCHIVE DESTINATION ${GUI_COMMONLIB_DIR}/${CONFIGURATION_FOLDER}/lib/${CMAKE_LIBRARY_ARCHITECTURE}
	CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES}
	)

In this case, no configurations are excluded, so it doesn't matter and the CONFIGURATIONS options could just be deleted. However, for versions 3.11 and later, the documentation states:

Note that the values specified for this option only apply to options listed AFTER the CONFIGURATIONS option.

(Prior to this version, it's not specified.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant