Skip to content

objectx/cmake-fastbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check POST_BUILD commands in CMake FASTBuild generator

This repository contains a simple CMake project that demonstrates the behavior of POST_BUILD commands when using the FASTBuild generator.

Prerequisites

  • CMake
  • FASTBuild
  • Just

To test

Using FASTBuild

just

Using Ninja

just build_engine=Ninja

Expected Behavior

Successfully compiled and executes the POST_BUILD command, printing:

Post-build step executed.
Post-build step executed.
Post-build step executed.

Observed Behavior

When using the FASTBuild generator, the fbuild command fails with the following error:

CMake Error: Failed to run FASTBuild command:
  '/usr/local/bin/fbuild' '-config' '/Users/objectx/Workspace/GitHub/cmake-fastbuild/0.B/FASTBuild/fbuild.bff' 'rebuild-bff' '-why'
Output:
/Users/objectx/Workspace/GitHub/cmake-fastbuild/0.B/FASTBuild/fbuild.bff(149,3): FASTBuild Error #1100 - Exec() - Target '/Users/objectx/Workspace/GitHub/cmake-fastbuild/0.B/FASTBuild/_fbuild_dummy/cc-bafa92b77bf103.fbuild-cc-out' already defined.
  Exec('cc-bafa92b77bf103')
  ^
  \--here
/Users/objectx/Workspace/GitHub/cmake-fastbuild/0.B/FASTBuild/fbuild.bff(140,3): FASTBuild Error #1100 - Previously declared here:
  Exec('cc-bafa92b77bf103')
  ^
  \--here

/Users/objectx/Workspace/GitHub/cmake-fastbuild/0.B/FASTBuild/fbuild.bff(149,3): FASTBuild Error #1100 - Exec() - Target '/Users/objectx/Workspace/GitHub/cmake-fastbuild/0.B/FASTBuild/_fbuild_dummy/cc-bafa92b77bf103.fbuild-cc-out' already defined.
  Exec('cc-bafa92b77bf103')
  ^
  \--here
/Users/objectx/Workspace/GitHub/cmake-fastbuild/0.B/FASTBuild/fbuild.bff(140,3): FASTBuild Error #1100 - Previously declared here:
  Exec('cc-bafa92b77bf103')
  ^
  \--here

When using the Ninja generator, the build completes successfully and the POST_BUILD commands are executed as expected.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published