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

Build with tests enabled break: Error evaluating generator expression: $<TARGET_FILE:ansi> #234

Closed
yurivict opened this issue Mar 17, 2021 · 6 comments

Comments

@yurivict
Copy link

  Error evaluating generator expression:

    $<TARGET_FILE:ansi>

  No target "ansi"
Call Stack (most recent call first):
  tests/CMakeLists.txt:32 (cmp_test)
@rougier
Copy link
Owner

rougier commented Mar 24, 2021

Thanks for the report. Can you give some context (OS and any cmake options you may have)?

@yurivict
Copy link
Author

OS: FreeBSD 12.2
cmake-3.19.4
cmake options: -Dfreetype-gl_BUILD_DEMOS:BOOL=true -DCMAKE_C_COMPILER:STRING="cc" -DCMAKE_CXX_COMPILER:STRING="c++" -DCMAKE_C_FLAGS:STRING="-O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing " -DCMAKE_C_FLAGS_DEBUG:STRING="-O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing " -DCMAKE_C_FLAGS_RELEASE:STRING="-O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing " -DCMAKE_CXX_FLAGS:STRING="-O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer " -DCMAKE_CXX_FLAGS_DEBUG:STRING="-O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer " -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer " -DCMAKE_EXE_LINKER_FLAGS:STRING=" -L/usr/local/lib -lGLEW -lfreetype -fstack-protector-strong " -DCMAKE_MODULE_LINKER_FLAGS:STRING=" -L/usr/local/lib -lGLEW -lfreetype -fstack-protector-strong " -DCMAKE_SHARED_LINKER_FLAGS:STRING=" -L/usr/local/lib -lGLEW -lfreetype -fstack-protector-strong " -DCMAKE_INSTALL_PREFIX:PATH="/usr/local" -DCMAKE_BUILD_TYPE:STRING="Release" -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dfreetype-gl_BUILD_APIDOC:BOOL=OFF -Dfreetype-gl_BUILD_TESTS:BOOL=OFF

@rougier
Copy link
Owner

rougier commented Mar 29, 2021

Thanks. I'm not sure what's happening. If you disable tests, does it build?

@yurivict
Copy link
Author

Yes.

@rougier
Copy link
Owner

rougier commented Mar 30, 2021

And if you specifically disable ansi target from test, I imagine it also builds, right?

@yurivict
Copy link
Author

I can't reproduce this any more. Perhaps the cmake version changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants