diff --git a/neo/idlib/CMakeLists.txt b/neo/idlib/CMakeLists.txt index 79232ffe..dc3cfcd4 100644 --- a/neo/idlib/CMakeLists.txt +++ b/neo/idlib/CMakeLists.txt @@ -130,6 +130,11 @@ else() SEPARATE_ARGUMENTS(_compiler_FLAGS) if (USE_PRECOMPILED_HEADERS) + if(OPTICK) + LIST(APPEND _compiler_FLAGS -DUSE_OPTICK=1) + else() + LIST(APPEND _compiler_FLAGS -DUSE_OPTICK=0) + endif() add_custom_target(precomp_header_idlib ALL COMMAND ${CMAKE_CXX_COMPILER} ${_compiler_FLAGS} -x c++-header precompiled.h -o precompiled.h.gch WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}