forked from qt-creator/qt-creator
CMake: Fix typo
This amends commit 4a20a596c8
.
Change-Id: I67ef326c54702162ad56136e66c2f66bb407343e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
064e71afbd
commit
06b95a0269
@@ -309,7 +309,7 @@ function(enable_pch target)
|
|||||||
function(_add_pch_target pch_target pch_file pch_dependency)
|
function(_add_pch_target pch_target pch_file pch_dependency)
|
||||||
if (EXISTS ${pch_file})
|
if (EXISTS ${pch_file})
|
||||||
add_library(${pch_target} STATIC
|
add_library(${pch_target} STATIC
|
||||||
${CMAKE_BINARY_DIR}/empy_pch.cpp)
|
${CMAKE_BINARY_DIR}/empty_pch.cpp)
|
||||||
target_compile_definitions(${pch_target} PRIVATE ${DEFAULT_DEFINES})
|
target_compile_definitions(${pch_target} PRIVATE ${DEFAULT_DEFINES})
|
||||||
set_target_properties(${pch_target} PROPERTIES
|
set_target_properties(${pch_target} PROPERTIES
|
||||||
PRECOMPILE_HEADERS ${pch_file})
|
PRECOMPILE_HEADERS ${pch_file})
|
||||||
@@ -318,10 +318,10 @@ function(enable_pch target)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
if (NOT TARGET QtCreatorPchGui AND NOT TARGET QtCreatorPchConsole)
|
if (NOT TARGET QtCreatorPchGui AND NOT TARGET QtCreatorPchConsole)
|
||||||
file(WRITE ${CMAKE_BINARY_DIR}/empy_pch.cpp.in "/*empty file*/")
|
file(WRITE ${CMAKE_BINARY_DIR}/empty_pch.cpp.in "/*empty file*/")
|
||||||
configure_file(
|
configure_file(
|
||||||
${CMAKE_BINARY_DIR}/empy_pch.cpp.in
|
${CMAKE_BINARY_DIR}/empty_pch.cpp.in
|
||||||
${CMAKE_BINARY_DIR}/empy_pch.cpp)
|
${CMAKE_BINARY_DIR}/empty_pch.cpp)
|
||||||
|
|
||||||
_add_pch_target(QtCreatorPchGui
|
_add_pch_target(QtCreatorPchGui
|
||||||
"${PROJECT_SOURCE_DIR}/src/shared/qtcreator_gui_pch.h" Qt5::Widgets)
|
"${PROJECT_SOURCE_DIR}/src/shared/qtcreator_gui_pch.h" Qt5::Widgets)
|
||||||
|
Reference in New Issue
Block a user