The following issue has been SUBMITTED. ====================================================================== https://public.kitware.com/Bug/view.php?id=15879 ====================================================================== Reported By: Javier Martinez Assigned To: ====================================================================== Project: CMake Issue ID: 15879 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2015-12-11 16:56 EST Last Modified: 2015-12-11 16:56 EST ====================================================================== Summary: Wrong configuration name emitted by generator expression Description: CMake has issues with the $<CONFIG> and $<CONFIG:name> generator expressions when one configuration name is a substring of another. The attached reproducer has Debug, Release and ReleaseInternal as the configuration names. In this case ReleaseInternal is used instead of Release.
Steps to Reproduce: - Generate solution (I placed the CMakeLists/txt file in the /bin folder and used cmake.exe . to generate the solution) - Open the generated solution Test.sln - Open the properties for TestProject -> CMake Rules ->stamp.txt.rule - Click on Configuration Properties -> Custom Build Tools -> General - On Configuration select Release - Inspect the Command Line property, it reads "Printing comment for ReleaseInternal" instead of "Printing comment for Release" Additional Information: Tested with CMake version cmake-3.4.1-win32-x86 ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-12-11 16:56 Javier MartinezNew Issue 2015-12-11 16:56 Javier MartinezFile Added: CMakeLists.txt ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers