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

fftw3 export targets ${fftw3_lib}_omp failed #195

Open
LilyWangL opened this issue Apr 3, 2020 · 0 comments · May be fixed by #331
Open

fftw3 export targets ${fftw3_lib}_omp failed #195

LilyWangL opened this issue Apr 3, 2020 · 0 comments · May be fixed by #331

Comments

@LilyWangL
Copy link

Hi,
I installed fftw3[openmp] successfully on Linux by VCPKG, and cmake created libfftw3_omp.a libfftw3f_omp.a. I found cmake create the cmake files as below:
image
There no openmp cmake files, I add these codes to CMakeLists.txt and rebuild fftw3[openmp].

if (OPENMP_FOUND)		 
	export (TARGETS ${fftw3_lib}_omp NAMESPACE FFTW3:: FILE ${PROJECT_BINARY_DIR}/${fftw3_lib}_ompTargets.cmake)
	install(EXPORT ${fftw3_lib}_ompTargets
			NAMESPACE FFTW3::
			DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake
			COMPONENT Development)
endif()

fftw3[openmp] build failed with this error:

CMake Error: INSTALL(EXPORT) given unknown export "fftw3f_ompTargets"
CMake Warning:
  Manually-specified variables were not used by the project:

    VCPKG_PLATFORM_TOOLSET
    VCPKG_SET_CHARSET_FLAG

Could fftw3 generate target and config files for openmp? Thanks for any suggestion or help.

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

Successfully merging a pull request may close this issue.

1 participant