Add the error_codes.h to all CMAKE projects (dotnet/core-setup#6754)
authorVitek Karas <vitek.karas@microsoft.com>
Tue, 11 Jun 2019 22:07:50 +0000 (15:07 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2019 22:07:50 +0000 (15:07 -0700)
It's true that one or two test projects don't use error codes, but this is simpler then adding to everything else one by one.

This solves the thing where I start VS on core-setup "Find in files" error code - and nothing comes up... even though it's definitely there.

Commit migrated from https://github.com/dotnet/core-setup/commit/02f0cf81614878fe1a991fb8a36b5171046fef43

src/installer/corehost/cli/common.cmake

index cb6b914..7469fd1 100644 (file)
@@ -31,7 +31,8 @@ list(APPEND SOURCES
 list(APPEND HEADERS
     ${CMAKE_CURRENT_LIST_DIR}/../common/trace.h
     ${CMAKE_CURRENT_LIST_DIR}/../common/utils.h
-    ${CMAKE_CURRENT_LIST_DIR}/../common/pal.h)
+    ${CMAKE_CURRENT_LIST_DIR}/../common/pal.h
+    ${CMAKE_CURRENT_LIST_DIR}/../error_codes.h)
 
 if(WIN32)
     list(APPEND SOURCES