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

PrecompiledHeader.cmake: Fix setting SOURCE_CXX & SOURCE_C; recognize pch in subdirectories #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andrzejc
Copy link

cmake_parse_arguments() uses semicolon as separator, as it was SOURCE_C* options had no chance to work.
if pch name includes subdirectory, prepend it to .cpp/.c file by default

@larsch
Copy link
Owner

larsch commented Feb 15, 2017

Thanks for the update - but the tests don't pass with Visual Studio 2015 with these changes. I have applied the changes for SOURCE_CXX/SOURCE_C and make_directory() though.

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(873,21): error MSB4198: The expression "DirectoryName" cannot be evaluated on item "test-c_c_pch/test-pch-$<CONFIG>.pch". Illegal characters in path. [C:\priv\cmake-precompiled-header\build\c-Visual Studio 14 2 015-build\test-c.vcxproj]

@andrzejc
Copy link
Author

andrzejc commented Feb 15, 2017 via email

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

Successfully merging this pull request may close these issues.

None yet

2 participants