CMake: Do not add dummy.cpp to libraries
Cotire does not need it for PCH creation, the PCH will be created when compiling the first source file.
This commit is contained in:
@@ -282,11 +282,6 @@ macro(wx_add_library name)
|
|||||||
# collect all source files for mono library
|
# collect all source files for mono library
|
||||||
set(wxMONO_SRC_FILES ${wxMONO_SRC_FILES} ${src_files} PARENT_SCOPE)
|
set(wxMONO_SRC_FILES ${wxMONO_SRC_FILES} ${src_files} PARENT_SCOPE)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
if(wxBUILD_PRECOMP AND MSVC)
|
|
||||||
# Add dummy source file to be used by cotire for PCH creation
|
|
||||||
list(INSERT src_files 0 "${wxSOURCE_DIR}/src/common/dummy.cpp")
|
|
||||||
endif()
|
|
||||||
list(APPEND src_files ${wxSETUP_HEADER_FILE})
|
list(APPEND src_files ${wxSETUP_HEADER_FILE})
|
||||||
|
|
||||||
if(wxBUILD_SHARED)
|
if(wxBUILD_SHARED)
|
||||||
@@ -765,10 +760,6 @@ function(wx_add_test name)
|
|||||||
list(APPEND test_src ${wxSOURCE_DIR}/tests/${res})
|
list(APPEND test_src ${wxSOURCE_DIR}/tests/${res})
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
if(wxBUILD_PRECOMP AND MSVC)
|
|
||||||
# Add dummy source file to be used by cotire for PCH creation
|
|
||||||
list(INSERT test_src 0 "${wxSOURCE_DIR}/tests/dummy.cpp")
|
|
||||||
endif()
|
|
||||||
add_executable(${name} ${test_src})
|
add_executable(${name} ${test_src})
|
||||||
target_include_directories(${name} PRIVATE "${wxSOURCE_DIR}/tests" "${wxSOURCE_DIR}/3rdparty/catch/include")
|
target_include_directories(${name} PRIVATE "${wxSOURCE_DIR}/tests" "${wxSOURCE_DIR}/3rdparty/catch/include")
|
||||||
wx_exe_link_libraries(${name} base)
|
wx_exe_link_libraries(${name} base)
|
||||||
|
|||||||
Reference in New Issue
Block a user