Created
July 6, 2016 22:39
-
-
Save willir/28aa7f50b867044dfe2a03890be93285 to your computer and use it in GitHub Desktop.
Preinclude Headers Cmake Function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(preinclude_header headers) | |
| foreach(header ${ARGV}) | |
| message(STATUS "header: ${header}") | |
| if(MSVC) | |
| add_definitions(/FI${header}) | |
| else() | |
| add_definitions(-include ${header}) | |
| endif() | |
| endforeach(header) | |
| endfunction() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment