mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use a separate target to copy files to build folder
Several operations was attached to the POST_BUILD custom command of the ResInsight target. The number of characters in this command exceeded the limit on Windows, and error message "line too long" was displayed on GitHub actions. Suggested solution to copy files into build folder - add new target ResInsightDummyTarget used to find full path to build folder - add new target PreBuildFileCopy for file copy - add all copy operations as a list of cmake commands on PreBuildFileCopy
This commit is contained in:
10
ApplicationExeCode/empty.cpp
Normal file
10
ApplicationExeCode/empty.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
//
|
||||
// This empty file is used by ResInsightDummyTarget
|
||||
//
|
||||
// Creating a dummy target with an empty file is used to have a different target than ResInsight.
|
||||
// This target is used to find the full path to the build folder.
|
||||
//
|
||||
// $<TARGET_FILE_DIR:ResInsightDummyTarget>
|
||||
//
|
||||
// If we use the ResInsight target ($<TARGET_FILE_DIR:ResInsight>), we get a circular dependency.
|
||||
//
|
||||
Reference in New Issue
Block a user