diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 7e1c37ea02..49539fbab8 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -159,7 +159,7 @@ endif() message("CMake ${_AX_CORE_LIB} target_precompile_headers") target_precompile_headers(${_AX_CORE_LIB} PRIVATE - "$<$:cocos2d.h>" + "$<$:axmol.h>" ) if(WINDOWS) diff --git a/tests/cpp-tests/CMakeLists.txt b/tests/cpp-tests/CMakeLists.txt index d5e469ee7b..af5a6b0eab 100644 --- a/tests/cpp-tests/CMakeLists.txt +++ b/tests/cpp-tests/CMakeLists.txt @@ -598,7 +598,7 @@ endif() if(NOT IOS) message("CMake ${APP_NAME} target_precompile_headers") target_precompile_headers(${APP_NAME} PRIVATE - "$<$:cocos2d.h>" + "$<$:axmol.h>" ) endif()