Optional: Move optional-lite to the include/third-party directory

This fixes the use case of adding the include folder
manually to an outside project.
This commit is contained in:
Paul Hollinsky
2021-04-23 20:01:53 -04:00
parent b7ce9819bd
commit 6c1cbc9db8
44 changed files with 1 additions and 5 deletions
-4
View File
@@ -209,10 +209,6 @@ if(WIN32)
endif() endif()
endif(WIN32) endif(WIN32)
# optional-lite
add_subdirectory(third-party/optional-lite)
target_link_libraries(icsneocpp PUBLIC optional-lite)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
target_link_libraries(icsneocpp PUBLIC "-framework CoreFoundation" "-framework IOKit") target_link_libraries(icsneocpp PUBLIC "-framework CoreFoundation" "-framework IOKit")
endif() endif()
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef __ICSNEO_OPTIONAL_H_ #ifndef __ICSNEO_OPTIONAL_H_
#define __ICSNEO_OPTIONAL_H_ #define __ICSNEO_OPTIONAL_H_
#include "nonstd/optional.hpp" #include "icsneo/third-party/optional-lite/include/nonstd/optional.hpp"
/** /**
* We use icsneo::optional throughout the C++ API to allow for polyfilling * We use icsneo::optional throughout the C++ API to allow for polyfilling