Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@dawagner
Copy link
Contributor

@dawagner dawagner commented May 13, 2016

linking against Threads::Threads looks nicer linking to that imported library than to
${CMAKE_THREAD_LIBS_INIT}.

Using properties is cleaner than overriding the CMAKE_CXX_FLAGS variable.

Signed-off-by: David Wagner david.wagner@intel.com

@@             master       #368   diff @@
==========================================
Files           211        211
Lines          7169       7169
Methods        1309       1309
Messages          0          0
Branches       3244       3244
==========================================
Hits           3461       3461
Misses         1404       1404
Partials       2304       2304

Powered by Codecov. Last updated by d7b718a...e8bda4a

  

It looks nicer linking to that imported library than to
${CMAKE_THREAD_LIBS_INIT}.

Signed-off-by: David Wagner <david.wagner@intel.com>
@codecov-io
Copy link

codecov-io commented May 13, 2016

Current coverage is 48.28%

Merging #368 into master will not change coverage

@@             master       #368   diff @@
==========================================
  Files           211        211          
  Lines          7169       7169          
  Methods        1309       1309          
  Messages          0          0          
  Branches       3244       3244          
==========================================
  Hits           3461       3461          
  Misses         1404       1404          
  Partials       2304       2304          

Powered by Codecov. Last updated by d7b718a...d51e80f

Signed-off-by: David Wagner <david.wagner@intel.com>
@dawagner dawagner changed the title CMake: FindThreads now defines a Threads::Threads imported library CMake: some modernization May 13, 2016
@dawagner
Copy link
Contributor Author

@krocard @terahxluna @tcahuzax please review

@dawagner dawagner merged commit 5437d88 into intel:master May 17, 2016
@dawagner dawagner deleted the cmake-threads branch May 17, 2016 13:50
# only public methods instead of the whole class, but they are too many to
# do that. A separated plugin interface would fix that.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /FIiso646.h -wd4127 -wd4251")
set_property(DIRECTORY PROPERTY COMPILE_OPTIONS /W4 /FIiso646.h -wd4127 -wd4251)
Copy link
Contributor

@krocard krocard May 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting this through the add_compile_options function not be cleaner ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants