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:CMake Error at CMakeLists.txt:124 (add_executable): #23

Open
zhichunlizzx opened this issue Oct 30, 2019 · 5 comments
Open

ERROR:CMake Error at CMakeLists.txt:124 (add_executable): #23

zhichunlizzx opened this issue Oct 30, 2019 · 5 comments
Assignees

Comments

@zhichunlizzx
Copy link

I had some problems installing ccmpred

-- Configuring done
CMake Error at CMakeLists.txt:124 (add_executable):
Target "ccmpred" links to target "OpenMP::OpenMP_CXX" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

-- Generating done
-- Build files have been written to: /tmp/tmp.MjnOBYYduk
Scanning dependencies of target conjugrad

@zhichunlizzx
Copy link
Author

full output of 'cmake' is:

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- MsgPack was not found. Make sure MSGPACK_LIBRARY and MSGPACK_INCLUDE_DIR are set.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Could NOT find LibJansson (missing: JANSSON_LIBRARY JANSSON_INCLUDE_DIR)
-- Found LibUUID: /usr/lib/x86_64-linux-gnu/libuuid.so
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
-- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
CMake Warning (dev) in lib/libconjugrad/CMakeLists.txt:
A logical block opening on the line

/home/zzx/soedinglab/CCMpred/lib/libconjugrad/CMakeLists.txt:42 (if)

closes on the line

/home/zzx/soedinglab/CCMpred/lib/libconjugrad/CMakeLists.txt:51 (endif)

with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
CMake Error at CMakeLists.txt:124 (add_executable):
Target "ccmpred" links to target "OpenMP::OpenMP_CXX" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

@croth1
Copy link

croth1 commented Oct 30, 2019

Thanks for reporting. This looks like a typo in libconjugrad:

if(WITH_CUDA)
	find_package(CUDA)
	check_language(CUDA)
	enable_language(CUDA)

	#list(APPEND SOURCES src/conjugrad_cuda.c src/help_functions.cu src/conjugrad_kernels.cu)
	list(APPEND SOURCES src/conjugrad_cuda.c src/conjugrad_kernels.cu)

	include_directories(${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
endif(CUDA_FOUND)

ping @sseemayer

@sseemayer sseemayer self-assigned this Nov 1, 2019
@sseemayer
Copy link
Contributor

Huh, I wonder why this was working for me in the first place. Thanks for spotting the issue @croth1 and please try again after updating the CCMpred and libconjugrad repos @zhichunlizzx .

@sseemayer
Copy link
Contributor

sseemayer commented Nov 2, 2019

I forgot to mention that the commit of relevance for this is 688e4ba together with this commit in libconjugrad

@zhichunlizzx
Copy link
Author

@sseemayer Thanks for your reply,but,the problem still exist after to update。

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