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

Error on installation "get_property could not find TARGET calibu" #60

Open
EmmanuelCos opened this issue Jan 29, 2019 · 2 comments
Open

Comments

@EmmanuelCos
Copy link

Hello,

I'm trying to install Calibu with Cmake, and I get the following error:
"CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/GenerateExportHeader.cmake:398 (get_property):
get_property could not find TARGET calibu. Perhaps it has not yet been
created.
Call Stack (most recent call first):
CMakeLists.txt:157 (GENERATE_EXPORT_HEADER)"

I have been searching the cause of this problem for hours and don't get it...
Has any one already had this problem?

Thank you and regards,

Emmanuel

@Mustardsauce
Copy link

try to change "CMakeLists.txt"

line from 151 to 163,

if(MSVC)
string(TOUPPER ${LIBRARY_NAME} LIBRARY_NAME_CAPS)
include(GenerateExportHeader)
GENERATE_EXPORT_HEADER( ${LIBRARY_NAME}
BASE_NAME ${LIBRARY_NAME_CAPS}
EXPORT_MACRO_NAME ${LIBRARY_NAME_CAPS}_EXPORT
EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/include/${LIBRARY_NAME}/${LIBRARY_NAME}_export.h"
STATIC_DEFINE ${LIBRARY_NAME_CAPS}_BUILT_AS_STATIC
)
endif()

move to line 197,

add_library( calibu ${SOURCES} )
target_link_libraries( calibu ${LINK_LIBS} )

if(MSVC)
string(TOUPPER ${LIBRARY_NAME} LIBRARY_NAME_CAPS)
include(GenerateExportHeader)
GENERATE_EXPORT_HEADER( ${LIBRARY_NAME}
BASE_NAME ${LIBRARY_NAME_CAPS}
EXPORT_MACRO_NAME ${LIBRARY_NAME_CAPS}_EXPORT
EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/include/${LIBRARY_NAME}/${LIBRARY_NAME}_export.h"
STATIC_DEFINE ${LIBRARY_NAME_CAPS}_BUILT_AS_STATIC
)
endif()

@adahbingee
Copy link

works for me! thanks

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

3 participants