Am 07.11.19 um 18:01 schrieb samyuktar:
SET(CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_COMPILER} ${CMAKE_C_FLAGS}
--c_file=../main.c -z --map_file=${TARGET_NAME}.map
--output_file=${TARGET_NAME} ${PLATFORM_CONFIG_L_FLAGS} ${CMD_SRCS} ${LIB}
--include_path ${LWIP_INCLUDE_DIR} --verbose " CACHE STRING
Hello
Sent from Mail Master--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://
Hi,
I want to include some open-source stacks in my code for the CC1352P1, so
I'm trying to use cmake with armcl compiler and armar archiver.
Here is my code:
cmake_minimum_required(VERSION 3.10)
set (CMAKE_CONFIGURATION_TYPES "Debug;Release")
project(lwIP)
# Example lwIP application
set(LW
Another option is to use BUILD_SHARED_LIBS to control static vs. shared. Set
it to false on MSVC and true everywhere else, then omit the library type in the
add_library calls that you wish to have controllable behaviour. Those
add_library calls will then consult BUILD_SHARED_LIBS to determine
Thank you. So I guess I can make it as simple as:
if(MSVC)
add_library(${_star_lib_name} STATIC "")
else()
add_library(${_star_lib_name} SHARED "")
endif()
I just wondered if there was a more elegant way.
On Thu, Nov 7, 2019 at 11:45 AM Petr Kmoch wrote:
> Hi.
>
> The argument STATIC o
Hi.
The argument STATIC or SHARED is processed at CMake configure time (that
is, when CMake is executing the add_library() command). However, generator
expressions are only evaluated at generate time, which comes only after all
CMake code is processed.
Fortunately for you, compiler ID is somethin
I want to build a shared library for Linux and a static library for
Windows. So I have tried:
set (_star_lib_name "StdStars")
add_library(${_star_lib_name}
$<$:SHARED>
$<$:STATIC>
""
)
but that gives me error:
CMake Error at
C:/SVNProj/zodiac/branches/