You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How can I add a compile definition to a subdirectory? #75
Activity
gmh5225 commentedon Nov 14, 2022
Maybe you could try it this way
In asmjit-static.cmake:
add_definitions(-DASMJIT_STATIC)mrexodia commentedon Nov 14, 2022
Yeah you can do this, but it’s not the correct way to do this. Asmjit has a CMake
optionto build statically and you should set that instead:The
DEFINEDkeyword in CMake (confusingly) has nothing to do with compile definitions and instead checks if a CMake variable is defined.