Commit b58c436f authored by Martin Marinov's avatar Martin Marinov
Browse files

Fixed a dependency MSVC issue: When changing a *T.cc file, MSVC will not...

Fixed a dependency MSVC issue: When changing a *T.cc file, MSVC will not recompile the corresponding explicit instantiation .cc file; Fixed by excluding all *T.cc files from the build by setting them in a separate source file group (my_t_impls) and setting the files properties to headers.

[git-p4: depot-paths = "//ReForm/ReForm/main/CoMISo/": change = 10392]
parent ad95390a
set(my_headers
SET(my_headers
${CMAKE_CURRENT_SOURCE_DIR}/ArpackSolver.hh
${CMAKE_CURRENT_SOURCE_DIR}/EigenArpackMatrixT.hh
PARENT_SCOPE
)
set(my_sources
${CMAKE_CURRENT_SOURCE_DIR}/ArpackSolver.cc
SET(my_t_impls
${CMAKE_CURRENT_SOURCE_DIR}/EigenArpackMatrixT.cc
PARENT_SCOPE
)
SET(my_sources
${CMAKE_CURRENT_SOURCE_DIR}/ArpackSolver.cc
PARENT_SCOPE
)
set(my_headers
SET(my_headers
${CMAKE_CURRENT_SOURCE_DIR}/BoundConstraint.hh
${CMAKE_CURRENT_SOURCE_DIR}/COMISOSolver.hh
${CMAKE_CURRENT_SOURCE_DIR}/ConeConstraint.hh
......@@ -28,28 +28,32 @@ set(my_headers
PARENT_SCOPE
)
set(my_sources
set(my_t_impls
${CMAKE_CURRENT_SOURCE_DIR}/CPLEXSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/LinearConstraintHandlerPenaltyT.cc
${CMAKE_CURRENT_SOURCE_DIR}/LinearConstraintHandlerEliminationT.cc
${CMAKE_CURRENT_SOURCE_DIR}/NPLinearConstraintsT.cc
${CMAKE_CURRENT_SOURCE_DIR}/SuperSparseMatrixT.cc
PARENT_SCOPE
)
SET(my_sources
${CMAKE_CURRENT_SOURCE_DIR}/BoundConstraint.cc
${CMAKE_CURRENT_SOURCE_DIR}/COMISOSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/ConeConstraint.cc
${CMAKE_CURRENT_SOURCE_DIR}/CPLEXSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/CPLEXSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/GurobiHelper.cc
${CMAKE_CURRENT_SOURCE_DIR}/GUROBISolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/IPOPTSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/LeastSquaresProblem.cc
${CMAKE_CURRENT_SOURCE_DIR}/LinearConstraint.cc
${CMAKE_CURRENT_SOURCE_DIR}/LinearConstraintHandlerElimination.cc
${CMAKE_CURRENT_SOURCE_DIR}/LinearConstraintHandlerEliminationT.cc
${CMAKE_CURRENT_SOURCE_DIR}/LinearConstraintHandlerPenalty.cc
${CMAKE_CURRENT_SOURCE_DIR}/LinearConstraintHandlerPenaltyT.cc
${CMAKE_CURRENT_SOURCE_DIR}/NewtonSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/NPDerivativeChecker.cc
${CMAKE_CURRENT_SOURCE_DIR}/NPLinearConstraints.cc
${CMAKE_CURRENT_SOURCE_DIR}/NPLinearConstraintsT.cc
${CMAKE_CURRENT_SOURCE_DIR}/NProblemInterface.cc
${CMAKE_CURRENT_SOURCE_DIR}/NPTiming.cc
${CMAKE_CURRENT_SOURCE_DIR}/SuperSparseMatrixT.cc
${CMAKE_CURRENT_SOURCE_DIR}/TAOSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/TapeIDSingleton.cc
PARENT_SCOPE
......
set(my_headers
SET(my_headers
${CMAKE_CURRENT_SOURCE_DIR}/CholmodSolver.hh
${CMAKE_CURRENT_SOURCE_DIR}/ConstrainedSolver.hh
${CMAKE_CURRENT_SOURCE_DIR}/EigenLDLTSolver.hh
......@@ -12,24 +12,28 @@ set(my_headers
PARENT_SCOPE
)
set(my_sources
${CMAKE_CURRENT_SOURCE_DIR}/CholmodSolver.cc
SET(my_t_impls
${CMAKE_CURRENT_SOURCE_DIR}/CholmodSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/ConstrainedSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/ConstrainedSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/EigenLDLTSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/EigenLDLTSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/IterativeSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/SparseQRSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/MISolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/TaucsSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/UMFPACKSolverT.cc
PARENT_SCOPE
)
SET(my_sources
${CMAKE_CURRENT_SOURCE_DIR}/CholmodSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/ConstrainedSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/EigenLDLTSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/Eigen_Tools.cc
${CMAKE_CURRENT_SOURCE_DIR}/GMM_Tools.cc
${CMAKE_CURRENT_SOURCE_DIR}/IterativeSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/IterativeSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/MISolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/MISolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/SparseQRSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/SparseQRSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/TaucsSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/TaucsSolverT.cc
${CMAKE_CURRENT_SOURCE_DIR}/UMFPACKSolver.cc
${CMAKE_CURRENT_SOURCE_DIR}/UMFPACKSolverT.cc
PARENT_SCOPE
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment