Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake - the project is never up-to-date on IMATH_INSTALL enabled because of timestamp issues #437

Open
AnastaZIuk opened this issue Sep 18, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@AnastaZIuk
Copy link

AnastaZIuk commented Sep 18, 2024

Issue:

  • If IMATH_INSTALL option is enabled ZERO_CHECK target will always rerun CMake when the Imath target is requested to be built because the export file seems to be created at configure time as "dummy file" and later export is called causing the file to be overwritten at generate time resulting in incorrect timestamp checks
1>Build started 9/18/2024 11:47:37 AM.
1>Target PrepareForBuild:
1>  Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
1>Target InitializeBuildStatus:
1>  Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
1>  Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
1>Target PreBuildEvent:
1>  Checking File Globs
1>Target CustomBuild:
1>  1>Checking Build System
1>  CMake is re-running because D:/repositories/DevshGraphicsProgramming/Nabla/build/dynamic/3rdparty/openexr/CMakeFiles/generate.stamp is out-of-date.
1>    the file 'D:/repositories/DevshGraphicsProgramming/Nabla/build/dynamic/3rdparty/imath/config/ImathTargets.cmake'
1>    is newer than 'D:/repositories/DevshGraphicsProgramming/Nabla/build/dynamic/3rdparty/openexr/CMakeFiles/generate.stamp.depend'
1>    result='-1'

Proposed solution:

@AnastaZIuk
Copy link
Author

of course turning IMATH_INSTALL off when building from sources is a workaround (the file doesn't change content for CMake iterations)

AnastaZIuk added a commit to Devsh-Graphics-Programming/libdeflate that referenced this issue Sep 19, 2024
AnastaZIuk referenced this issue in Devsh-Graphics-Programming/Nabla Sep 19, 2024
@cary-ilm cary-ilm added the help wanted Extra attention is needed label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants