Removed pch.h:
- Under linux pch.h won't work as expected, instead it will slow down build time. In order to fix this, target_precompile_headers cmake function must have every header that will be used in pch.hxx generation. - Using the opportunity i've removed headers that aren't essential in precompiled header
This commit is contained in:
@@ -18,7 +18,17 @@ file(GLOB SRC
|
||||
)
|
||||
|
||||
add_library(squirrel-template SHARED ${SRC})
|
||||
target_precompile_headers(squirrel-template PRIVATE "src/pch.h")
|
||||
|
||||
target_compile_definitions(squirrel-template
|
||||
PRIVATE
|
||||
SCRAT_EXPORT
|
||||
)
|
||||
|
||||
target_precompile_headers(squirrel-template
|
||||
PRIVATE
|
||||
"src/api/module_api.h"
|
||||
"src/api/squirrel_api.h"
|
||||
)
|
||||
|
||||
target_include_directories(squirrel-template
|
||||
INTERFACE
|
||||
|
||||
Reference in New Issue
Block a user