Mercurial > pub > dyncall > dyncall
comparison CMakeLists.txt @ 31:6e7b1b7ad9d3
Fixed failing builds when the compiler is ICC/ICPC
author | Snaipe <franklinmathieu@gmail.com> |
---|---|
date | Fri, 27 Nov 2015 00:04:24 +0100 |
parents | af6c88d34af0 |
children | c12120a1fbc0 |
comparison
equal
deleted
inserted
replaced
30:c16bc7736bb4 | 31:6e7b1b7ad9d3 |
---|---|
44 # set(CMAKE_ASM_COMPILER "ml") | 44 # set(CMAKE_ASM_COMPILER "ml") |
45 #endif() | 45 #endif() |
46 #set(CMAKE_ASM_COMPILER_ARG1 "/c") | 46 #set(CMAKE_ASM_COMPILER_ARG1 "/c") |
47 #set(CMAKE_ASM_MASM_SOURCE_FILE_EXTENSIONS asm) | 47 #set(CMAKE_ASM_MASM_SOURCE_FILE_EXTENSIONS asm) |
48 #set(CMAKE_ASM_MASM_COMPILE_OBJECT "<CMAKE_ASM_MASM_COMPILER> <FLAGS> /c /Fo <OBJECT> <SOURCE>") | 48 #set(CMAKE_ASM_MASM_COMPILE_OBJECT "<CMAKE_ASM_MASM_COMPILER> <FLAGS> /c /Fo <OBJECT> <SOURCE>") |
49 elseif(CMAKE_COMPILER_IS_GNUCC) | 49 elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Intel") |
50 # when used in shared libraries, -fPIC is required by several architectures | 50 # when used in shared libraries, -fPIC is required by several architectures |
51 # and platforms (observed on AMD64, Solaris/Sparc). | 51 # and platforms (observed on AMD64, Solaris/Sparc). |
52 # we enable it per default here. | 52 # we enable it per default here. |
53 add_definitions("-fPIC") | 53 add_definitions("-fPIC") |
54 # enable gcc as front-end to assembler for .S files | 54 # enable gcc as front-end to assembler for .S files |