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

[CMAKE] Refactored FindXDR.cmake module #640

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

philthiel
Copy link
Contributor

Configuration problems on macOS using -std=c++11 concerning finding XDR should be resolved now. This should fix #639.

Configuration problems on macOS using -std=c++11 concerning finding XDR
should be resolved now.
Manual library searching required.
@tkemmer
Copy link
Contributor

tkemmer commented Nov 23, 2017

The FindXDR module seems to work now! However, FindBoost stopped working with your PR on my Mac (Sierra, CMake 3.8, Contrib) for some reason.

Master:

-- Performing Test BALL_XDRREC_CREATE_VOID_VOID_INT - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Boost version: 1.60.0

PR:

-- Performing Test BALL_XDRREC_CREATE_VOID_VOID_INT - Success
-- Looking for pthread.h
-- Looking for pthread.h - not found
CMake Error at /Applications/CLion.app/Contents/bin/cmake/share/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /Applications/CLion.app/Contents/bin/cmake/share/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  /Applications/CLion.app/Contents/bin/cmake/share/cmake-3.8/Modules/FindThreads.cmake:212 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /Applications/CLion.app/Contents/bin/cmake/share/cmake-3.8/Modules/CMakeFindDependencyMacro.cmake:55 (find_package)
  /Applications/CLion.app/Contents/bin/cmake/share/cmake-3.8/Modules/FindBoost.cmake:1478 (find_dependency)
  cmake/BALLConfigBoost.cmake:38 (FIND_PACKAGE)
  CMakeLists.txt:133 (INCLUDE)

This problem does not seem to occur with our Sierra and El Capitan build workers, though.

@philthiel
Copy link
Contributor Author

CI runs are ok: on macOS it is only the Timer_test that failed. Not related to XDR.

The boost thing is weird, I will look into that.

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 this pull request may close these issues.

CHECK_CXX_SOURCE_COMPILES ignores compiler flags on macOS
2 participants