diff --git a/unity/native_src/CMakeLists.txt b/unity/native_src/CMakeLists.txt index 9479c996f2..e5835c4184 100644 --- a/unity/native_src/CMakeLists.txt +++ b/unity/native_src/CMakeLists.txt @@ -66,13 +66,6 @@ set ( PUERTS_INC ${PROJECT_SOURCE_DIR}/../../unreal/Puerts/Source/JsEnv/Private/PromiseRejectCallback.hpp ) -if(DEFINED PUERTS_EXTRA_SRC) - list(APPEND PUERTS_SRC ${PUERTS_EXTRA_SRC}) -endif() - -if(DEFINED PUERTS_EXTRA_INC) - include_directories(${PUERTS_EXTRA_INC}) -endif() macro(source_group_by_dir proj_dir source_files) if(MSVC OR APPLE) @@ -111,6 +104,14 @@ else () ) endif() +if(DEFINED PUERTS_EXTRA_SRC) + list(APPEND PUERTS_SRC ${PUERTS_EXTRA_SRC}) +endif() + +if(DEFINED PUERTS_EXTRA_INC) + include_directories(${PUERTS_EXTRA_INC}) +endif() + if ( APPLE ) if ( IOS ) set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)") @@ -322,4 +323,4 @@ if ( WIN32 AND NOT CYGWIN AND NOT ( CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" ) MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") endif () -install(TARGETS puerts DESTINATION bin) \ No newline at end of file +install(TARGETS puerts DESTINATION bin)