Skip to content

Commit caa599e

Browse files
committed
Made NSC compile with disabled PCH
1 parent 2590ba0 commit caa599e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/common.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ macro(nbl_create_executable_project _EXTRA_SOURCES _EXTRA_OPTIONS _EXTRA_INCLUDE
5656
endif()
5757
endif()
5858

59+
if(WIN32 AND MSVC)
60+
target_compile_definitions(${EXECUTABLE_NAME} PUBLIC
61+
_DXC_DLL_="${DXC_DLL}"
62+
)
63+
endif()
64+
5965
target_compile_definitions(${EXECUTABLE_NAME} PUBLIC _NBL_APP_NAME_="${EXECUTABLE_NAME}")
6066

6167
if("${EXECUTABLE_NAME}" STREQUAL commonpch)

0 commit comments

Comments
 (0)