diff options
Diffstat (limited to 'host/examples/getopt')
-rw-r--r-- | host/examples/getopt/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/getopt/CMakeLists.txt b/host/examples/getopt/CMakeLists.txt index 047572108..4fe8ab43d 100644 --- a/host/examples/getopt/CMakeLists.txt +++ b/host/examples/getopt/CMakeLists.txt @@ -8,7 +8,7 @@ ######################################################################## # getopt library for C examples since MSVC does not include it ######################################################################## -INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIRECTORY}) -ADD_LIBRARY(getopt STATIC +include_directories(${CMAKE_CURRENT_SOURCE_DIRECTORY}) +add_library(getopt STATIC ${CMAKE_CURRENT_SOURCE_DIR}/getopt.c ) |