Skip to content

Commit 509b21d

Browse files
committed
introduce one liner giga optimization for examples, reuse Nabla PCH - reduce size of each example's build directory by at least 1.3 GB (when compiled for each configuration) and speed up examples compilation
1 parent 59f27a0 commit 509b21d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/common.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ macro(nbl_create_executable_project _EXTRA_SOURCES _EXTRA_OPTIONS _EXTRA_INCLUDE
6565

6666
# EXTRA_SOURCES is var containing non-common names of sources (if any such sources, then EXTRA_SOURCES must be set before including this cmake code)
6767
add_dependencies(${EXECUTABLE_NAME} Nabla)
68+
target_precompile_headers(${EXECUTABLE_NAME} REUSE_FROM Nabla)
6869
get_target_property(NBL_EGL_INCLUDE_DIRECORIES egl INCLUDE_DIRECTORIES)
6970

7071
target_include_directories(${EXECUTABLE_NAME}

0 commit comments

Comments
 (0)