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

Added preprocessor directives for specific compilers #23

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

Sqeaky
Copy link

@Sqeaky Sqeaky commented May 2, 2016

Added individual preprocessor macros for 4 msvc compiler, Clang, GCC and MinGw.

I also added a test function, TestPrepoc to the Process tests. This emits all the compiler macros and requests the user/tester visually inspect the result.

This is still from the same fork I made earlier. I think it ought to work seamlessly, but I have not attempted two requests from a single fork before.

Sqeaky added 9 commits April 29, 2016 12:05
…Ubuntu.

Though in source builds are not a good idea, I added the common CMake files and files to the .gitignore.
…nd adjusted cmake output to make it easier to read. Building with shared libraries fails in visual studio with linker errors (probably easily resolved) build with static still works.
…ng list of source files, I corrected this and added target dependent preprocessor defintions.
…e compiler warnings and provides stronger guarantees going forward and in the event of platform changes.
…f NOMINMAX, Replacing ROBOT_OS_WIN with a comiler checks where appropriate, Added linking details to CMakeLists.txt and fixed a few unique items.
…rt for detecting the 4 supported versions of msvc, Clang, GCC and MinGW.
@memsharded
Copy link

I am using @Sqeaky fork for creation of conan.io package (https://github.com/memsharded/conan-robot, https://www.conan.io/source/Robot/2.0/memsharded/testing), because it is more convenient having a CMakeLists.txt. So far, only tested VS14 and VS12, both static and shared linking, works great.

@dkrutsko dkrutsko modified the milestone: Robot 2.1.0 May 30, 2016
@dkrutsko dkrutsko added the Request A cool feature request for the library label May 30, 2016
@dkrutsko dkrutsko linked an issue Mar 25, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request A cool feature request for the library
Development

Successfully merging this pull request may close these issues.

Add dedicated compiler preprocessor defines
3 participants